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

Unified Diff: LayoutTests/fast/events/dispatch-event-no-document.html

Issue 22880019: [DOM4] Doctypes now always have a node document and can be moved across document boundaries (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Improve tests Created 7 years, 4 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: LayoutTests/fast/events/dispatch-event-no-document.html
diff --git a/LayoutTests/fast/events/dispatch-event-no-document.html b/LayoutTests/fast/events/dispatch-event-no-document.html
index 7f99ad5b92dcc14ca46a4a53ce699aafefe0f182..ccee7f8a3b37323b269ee117c1a68a76044b0939 100644
--- a/LayoutTests/fast/events/dispatch-event-no-document.html
+++ b/LayoutTests/fast/events/dispatch-event-no-document.html
@@ -1,6 +1,6 @@
<script>
function handleEvent(message) {
- document.getElementById("log").innerHTML = "FAIL: " + message + " handled.<br>";
+ document.getElementById("log").innerHTML = "PASS: " + message + " handled.<br>";
}
function test() {
@@ -21,6 +21,6 @@ function test() {
}
</script>
<body onload="test()">
-<p>The test verifies that EventTarget with an event listener but without ScriptExecutionContext (not inserted into Document) does not crash during an attempt to dispatch an event. It should just not call the handler. This is what FF 3.5 is also doing.</p>
-<p>Test passes if there is no crash, and event is not dispatched.</p>
-<div id="log">PASS</div>
+<p>The test verifies that EventTarget with an event listener not inserted into a Document does not crash during an attempt to dispatch an event.</p>
+<p>Test passes if there is no crash, and event is dispatched.</p>
+<div id="log">FAIL</div>

Powered by Google App Engine
This is Rietveld 408576698