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

Side by Side Diff: LayoutTests/fast/dom/MutationObserver/database-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 testDatabase() { 7 function testDatabase() {
8 var div; 8 var div;
9 var db; 9 var db;
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 db = openDatabase('DatabaseMutationDelivery', '1.0', '', 1); 21 db = openDatabase('DatabaseMutationDelivery', '1.0', '', 1);
22 db.transaction(mutate); 22 db.transaction(mutate);
23 } 23 }
24 24
25 function mutate() { 25 function mutate() {
(...skipping 11 matching lines...) Expand all
37 } 37 }
38 38
39 start(); 39 start();
40 } 40 }
41 41
42 description('Testing mutations are delivered following Database transaction call backs.'); 42 description('Testing mutations are delivered following Database transaction call backs.');
43 43
44 testDatabase(); 44 testDatabase();
45 </script> 45 </script>
46 <script src="../../js/resources/js-test-post.js"></script> 46 <script src="../../js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/MutationObserver/cross-document.html ('k') | LayoutTests/fast/dom/MutationObserver/delivery-order.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698