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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-audio-element/audio_constructor.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/html/semantics/embedded-content/the-audio-element/audio_constructor.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-audio-element/audio_constructor.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-audio-element/audio_constructor.html
index 995ea0ba056b58c6c24b8fd73c19f98006659b3a..2420988693a55cfd070cfdb60751bf952b92fc91 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-audio-element/audio_constructor.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-audio-element/audio_constructor.html
@@ -11,18 +11,12 @@ test(function() {
valueOf: function() { throw Error() }
};
var tests = [
- [function() { return Audio() }, null, "No arguments, without new"],
- [function() { return new Audio() }, null, "No arguments, with new"],
- [function() { return Audio("") }, "", "Empty string argument, without new"],
- [function() { return new Audio("") }, "", "Empty string argument, with new"],
- [function() { return Audio("src") }, "src", "Non-empty string argument, without new"],
- [function() { return new Audio("src") }, "src", "Non-empty string argument, with new"],
- [function() { return Audio(null) }, "null", "Null argument, without new"],
- [function() { return new Audio(null) }, "null", "Null argument, with new"],
- [function() { return Audio(undefined) }, null, "Undefined argument, without new"],
- [function() { return new Audio(undefined) }, null, "Undefined argument, with new"],
- [function() { return Audio("", throwingObject) }, "", "Extra argument, without new"],
- [function() { return new Audio("", throwingObject) }, "", "Extra argument, with new"],
+ [function() { return new Audio() }, null, "No arguments"],
+ [function() { return new Audio("") }, "", "Empty string argument"],
+ [function() { return new Audio("src") }, "src", "Non-empty string argument"],
+ [function() { return new Audio(null) }, "null", "Null argument"],
+ [function() { return new Audio(undefined) }, null, "Undefined argument"],
+ [function() { return new Audio("", throwingObject) }, "", "Extra argument"],
];
tests.forEach(function(t) {
var fn = t[0], expectedSrc = t[1], description = t[2];
@@ -40,6 +34,11 @@ test(function() {
});
test(function() {
assert_throws(new TypeError(), function() {
+ Audio();
+ });
+}, "Calling Audio should throw");
+test(function() {
+ assert_throws(new TypeError(), function() {
HTMLAudioElement();
});
}, "Calling HTMLAudioElement should throw");

Powered by Google App Engine
This is Rietveld 408576698