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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/constants.js

Issue 1529523002: Import dom/ from web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak W3CImportExpectations Created 5 years 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
(Empty)
1 function testConstants(objects, constants, msg) {
2 objects.forEach(function(arr) {
3 var o = arr[0], desc = arr[1];
4 test(function() {
5 constants.forEach(function(d) {
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")
8 })
9 }, "Constants for " + msg + " on " + desc + ".")
10 })
11 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698