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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/DOMImplementation-hasFeature.html

Issue 2303013002: Add UMA metric to track usage of sending a mousedown to select elements. (Closed)
Patch Set: W3C auto test import CL. Created 4 years, 3 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/dom/nodes/DOMImplementation-hasFeature.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/DOMImplementation-hasFeature.html b/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/DOMImplementation-hasFeature.html
index 2912051e73114dceb5042a308512b3f0b39afee5..637565a60f4e89ad76e319da7f0813eab7f6cea8 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/DOMImplementation-hasFeature.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/DOMImplementation-hasFeature.html
@@ -8,6 +8,12 @@
<script>
test(function() {
var tests = [
+ [],
+ ["Core"],
+ ["XML"],
+ ["org.w3c.svg"],
+ ["org.w3c.dom.svg"],
+ ["http://www.w3.org/TR/SVG11/feature#Script"],
["Core", "1.0"],
["Core", "2.0"],
["Core", "3.0"],
@@ -131,11 +137,19 @@ test(function() {
["This is filler text.", ""],
[null, ""],
[undefined, ""],
+ ["org.w3c.svg", ""],
+ ["org.w3c.svg", "1.0"],
+ ["org.w3c.svg", "1.1"],
+ ["org.w3c.dom.svg", ""],
+ ["org.w3c.dom.svg", "1.0"],
+ ["org.w3c.dom.svg", "1.1"],
+ ["http://www.w3.org/TR/SVG11/feature#Script", "7.5"],
];
tests.forEach(function(data) {
test(function() {
- assert_equals(document.implementation.hasFeature(data[0], data[1]), true)
- }, "hasFeature(" + format_value(data[0]) + ", " + format_value(data[1]) + ")")
+ assert_equals(document.implementation.hasFeature
+ .apply(document.implementation, data), true)
+ }, "hasFeature(" + data.map(format_value).join(", ") + ")")
})
})
</script>

Powered by Google App Engine
This is Rietveld 408576698