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

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: Fix nit 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..0c32176b905e13a8a6260aae38c5717456b91453
--- /dev/null
+++ b/LayoutTests/fast/html/eventhandler-attribute-non-callable-expected.txt
@@ -0,0 +1,22 @@
+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 callbackCount is 0
+PASS callbackCount is 1
+PASS div.onkeydown is not null
+PASS div.onkeydown = o did not throw exception.
+PASS div.onkeydown is null
+PASS callbackCount is 1
+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