equal
deleted
inserted
replaced
|
1 Tests.prototype.FileTests = function() { |
|
2 module('File I/O (navigator.file)'); |
|
3 test("should exist", function() { |
|
4 expect(1); |
|
5 ok(navigator.file != null, "navigator.file should not be null."); |
|
6 }); |
|
7 test("should contain a read function", function() { |
|
8 expect(2); |
|
9 ok(typeof navigator.file.read != 'undefined' && navigator.file.read != null, "navigator.file.read should not be null."); |
|
10 ok(typeof navigator.file.read == 'function', "navigator.file.read should be a function."); |
|
11 }); |
|
12 test("should contain a write function", function() { |
|
13 expect(2); |
|
14 ok(typeof navigator.file.write != 'undefined' && navigator.file.write != null, "navigator.file.write should not be null."); |
|
15 ok(typeof navigator.file.write == 'function', "navigator.file.write should be a function."); |
|
16 }); |
|
17 }; |