Index: LayoutTests/fast/events/constructors/event-constructors.html |
diff --git a/LayoutTests/fast/events/constructors/event-constructors.html b/LayoutTests/fast/events/constructors/event-constructors.html |
index 0068a3ffd8193b174f7c66d2b3a215ad130d075f..44e60083632ec62cbccea6b407c5ed4922153fde 100644 |
--- a/LayoutTests/fast/events/constructors/event-constructors.html |
+++ b/LayoutTests/fast/events/constructors/event-constructors.html |
@@ -51,8 +51,7 @@ test("new Event('eventType', null)", false, false); |
test("new Event('eventType', undefined)", false, false); |
// A number as the initializer. |
-// FIXME: Should this throw? |
bashi
2015/06/03 03:40:38
Yes. This should throw. Firefox throws exceptions
|
-test("new Event('eventType', 0)", false, false); |
+shouldThrow("new Event('eventType', 0)"); |
// The window as the initializer. |
test("new Event('eventType', window)", false, false); |
@@ -84,4 +83,4 @@ test("new Event('eventType', { bubbles: true, get cancelable() { return false; } |
shouldThrow("new Event('eventType', { bubbles: true, get cancelable() { throw 'Custom Error'; } })") |
</script> |
</body> |
-</html> |
+</html> |