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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/mutationobservers.js

Issue 1988983002: Move the dom directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 // Compares a mutation record to a predefined one 1 // Compares a mutation record to a predefined one
2 // mutationToCheck is a mutation record from the user agent 2 // mutationToCheck is a mutation record from the user agent
3 // expectedRecord is a mutation record minted by the test 3 // expectedRecord is a mutation record minted by the test
4 // for expectedRecord, if properties are ommitted, they get default ones 4 // for expectedRecord, if properties are ommitted, they get default ones
5 function checkRecords(target, mutationToCheck, expectedRecord) { 5 function checkRecords(target, mutationToCheck, expectedRecord) {
6 var mr1; 6 var mr1;
7 var mr2; 7 var mr2;
8 8
9 9
10 function checkField(property, isArray) { 10 function checkField(property, isArray) {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 68
69 test.step( 69 test.step(
70 function () { 70 function () {
71 (new MutationObserver(moc)).observe(node, mutationObserverOptions); 71 (new MutationObserver(moc)).observe(node, mutationObserverOptions);
72 mutationFunction(); 72 mutationFunction();
73 } 73 }
74 ); 74 );
75 return mutationRecordSequence.length 75 return mutationRecordSequence.length
76 } 76 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698