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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/selectors/pseudo-classes/utils.js

Issue 1999243002: Import wpt@5df9b57edb3307a87d5187804b29c8ddd2aa14e1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add expectations files (using run-webkit-tests --new-baseline) 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/selectors/pseudo-classes/utils.js
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/selectors/pseudo-classes/utils.js b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/selectors/pseudo-classes/utils.js
index 8f5497ec57e5cdaeea37954756b8d4cbd48cdd3c..a8b1cd62a81842b8721774a3ff80ea1de95de349 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/selectors/pseudo-classes/utils.js
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/selectors/pseudo-classes/utils.js
@@ -6,9 +6,15 @@ function getElementsByIds(ids) {
return result;
}
-function testSelector(selector, expected, testName) {
+function testSelectorIdsMatch(selector, ids, testName) {
test(function(){
var elements = document.querySelectorAll(selector);
- assert_array_equals(elements, getElementsByIds(expected));
+ assert_array_equals(elements, getElementsByIds(ids));
+ }, testName);
+}
+
+function testSelectorElementsMatch(selector, elements, testName) {
+ test(function(){
+ assert_array_equals(document.querySelectorAll(selector), elements);
}, testName);
}

Powered by Google App Engine
This is Rietveld 408576698