Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: LayoutTests/fast/dom/MutationObserver/filesystem-callback-delivery.html

Issue 12317072: Merge 143386 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698