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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/constants.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 function testConstants(objects, constants, msg) { 1 function testConstants(objects, constants, msg) {
2 objects.forEach(function(arr) { 2 objects.forEach(function(arr) {
3 var o = arr[0], desc = arr[1]; 3 var o = arr[0], desc = arr[1];
4 test(function() { 4 test(function() {
5 constants.forEach(function(d) { 5 constants.forEach(function(d) {
6 assert_true(d[0] in o, "Object " + o + " doesn't have " + d[0]) 6 assert_true(d[0] in o, "Object " + o + " doesn't have " + d[0])
7 assert_equals(o[d[0]], d[1], "Object " + o + " value for " + d[0] + " is wrong") 7 assert_equals(o[d[0]], d[1], "Object " + o + " value for " + d[0] + " is wrong")
8 }) 8 })
9 }, "Constants for " + msg + " on " + desc + ".") 9 }, "Constants for " + msg + " on " + desc + ".")
10 }) 10 })
11 } 11 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698