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"); |