1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-04-20 15:16:38 +00:00

ui: added "Alert" title to dialogs, updated binary detector

This commit is contained in:
Steven Hugg
2020-07-19 17:04:36 -05:00
parent 08af6ae3a5
commit 60de08c9da
4 changed files with 15 additions and 8 deletions
+5
View File
@@ -121,5 +121,10 @@ describe('string functions', function() {
assert.ok(util.isProbablyBinary('test.chr'));
assert.ok(!util.isProbablyBinary('test.txt'));
assert.ok(util.isProbablyBinary('test.dat'));
assert.ok(!util.isProbablyBinary(null, [0x20,0xa9,0x20,0x31,0x39,0x38,0x32]));
assert.ok(util.isProbablyBinary(null, [0x00,0x00])); // 00 is binary
assert.ok(util.isProbablyBinary(null, [0x9f])); // 9f is binary
assert.ok(util.isProbablyBinary(null, [0xff])); // FF is binary
assert.ok(util.isProbablyBinary(null, [0xf0,0x12])); // ran out of data
});
});