Index: third_party/WebKit/LayoutTests/fast/dom/XMLHttpRequest-legacy-event-listener.html |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/XMLHttpRequest-legacy-event-listener.html b/third_party/WebKit/LayoutTests/fast/dom/XMLHttpRequest-legacy-event-listener.html |
index 5be227731a5ead1c4b1bd6c99647b76d58b7af30..844a0266ee8dae4da2d58cf7ab833053dc626ac3 100644 |
--- a/third_party/WebKit/LayoutTests/fast/dom/XMLHttpRequest-legacy-event-listener.html |
+++ b/third_party/WebKit/LayoutTests/fast/dom/XMLHttpRequest-legacy-event-listener.html |
@@ -7,11 +7,11 @@ |
<script> |
description("Test addEventListener() and removeEventListener() fail silently if arguments are missing."); |
-shouldBe('new XMLHttpRequest().addEventListener("foo")', 'undefined'); |
-shouldBe('new XMLHttpRequest().removeEventListener("bar")', 'undefined'); |
+shouldThrow('new XMLHttpRequest().addEventListener("foo")'); |
+shouldThrow('new XMLHttpRequest().removeEventListener("bar")'); |
-shouldBe('new XMLHttpRequest().addEventListener()', 'undefined'); |
-shouldBe('new XMLHttpRequest().removeEventListener()', 'undefined'); |
+shouldThrow('new XMLHttpRequest().addEventListener()'); |
+shouldThrow('new XMLHttpRequest().removeEventListener()'); |
</script> |
</body> |
</html> |