| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../js/resources/js-test-pre.js"></script> |
| 3 <script> | 3 <script> |
| 4 window.jsTestIsAsync = true; | 4 window.jsTestIsAsync = true; |
| 5 var mutations; | 5 var mutations; |
| 6 | 6 |
| 7 function testFilesystem() { | 7 function testFilesystem() { |
| 8 var div; | 8 var div; |
| 9 var fileEntry; | 9 var fileEntry; |
| 10 var observer; | 10 var observer; |
| 11 | 11 |
| 12 function start() { | 12 function start() { |
| 13 mutations = null; | 13 mutations = null; |
| 14 div = document.createElement('div'); | 14 div = document.createElement('div'); |
| 15 observer = new WebKitMutationObserver(function(m) { | 15 observer = new MutationObserver(function(m) { |
| 16 mutations = m; | 16 mutations = m; |
| 17 }); | 17 }); |
| 18 | 18 |
| 19 observer.observe(div, { attributes: true, characterData: true }); | 19 observer.observe(div, { attributes: true, characterData: true }); |
| 20 | 20 |
| 21 webkitRequestFileSystem(TEMPORARY, 5*1024*1024, function(fs) { | 21 webkitRequestFileSystem(TEMPORARY, 5*1024*1024, function(fs) { |
| 22 fs.root.getFile('foo.txt', {create: true, excluse: true}, function(e
ntry) { | 22 fs.root.getFile('foo.txt', {create: true, excluse: true}, function(e
ntry) { |
| 23 fileEntry = entry; | 23 fileEntry = entry; |
| 24 fileEntry.getParent(mutateAfterGetParent); | 24 fileEntry.getParent(mutateAfterGetParent); |
| 25 }); | 25 }); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 56 | 56 |
| 57 description('Test that Mutation Records are delivered following FileSystem callb
acks.'); | 57 description('Test that Mutation Records are delivered following FileSystem callb
acks.'); |
| 58 | 58 |
| 59 if (!window.webkitRequestFileSystem) { | 59 if (!window.webkitRequestFileSystem) { |
| 60 testFailed('This test requires ENABLE(FILE_SYSTEM)'); | 60 testFailed('This test requires ENABLE(FILE_SYSTEM)'); |
| 61 finishJSTest(); | 61 finishJSTest(); |
| 62 } else | 62 } else |
| 63 testFilesystem(); | 63 testFilesystem(); |
| 64 </script> | 64 </script> |
| 65 <script src="../../js/resources/js-test-post.js"></script> | 65 <script src="../../js/resources/js-test-post.js"></script> |
| OLD | NEW |