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

Unified Diff: LayoutTests/fast/html/eventhandler-attribute-non-callable-expected.txt

Issue 22687002: Treat non-callable input as null for EventHandler attributes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Take Kentaro's feedback into consideration 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/html/eventhandler-attribute-non-callable-expected.txt
diff --git a/LayoutTests/fast/html/eventhandler-attribute-non-callable-expected.txt b/LayoutTests/fast/html/eventhandler-attribute-non-callable-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..fefe0d77901d5970d4abe0ef7026a7da4242c31a
--- /dev/null
+++ b/LayoutTests/fast/html/eventhandler-attribute-non-callable-expected.txt
@@ -0,0 +1,21 @@
+This test checks that EventHandler attributes only accept JS functions as input.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS div.onkeydown is null
+PASS div.onkeydown = callback did not throw exception.
+PASS div.onkeydown is callback
+PASS wasCallbackCalled is true
+PASS div.onkeydown is not null
+PASS div.onkeydown = o did not throw exception.
+PASS div.onkeydown is null
+PASS wasCallbackCalled is false
+PASS div.onkeydown = callback did not throw exception.
+PASS div.onkeydown is callback
+PASS div.onkeydown = null did not throw exception.
+PASS div.onkeydown is null
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698