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

Unified Diff: LayoutTests/fast/events/script-tests/init-events.js

Issue 1232403003: Removing UIEvent.keyCode and charCode. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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/script-tests/init-events.js
diff --git a/LayoutTests/fast/events/script-tests/init-events.js b/LayoutTests/fast/events/script-tests/init-events.js
index df709989974dff667a0d4159d63f54314ac52470..d78df13b18fae0b6291071bac27a79e01cf4e959 100644
--- a/LayoutTests/fast/events/script-tests/init-events.js
+++ b/LayoutTests/fast/events/script-tests/init-events.js
@@ -100,8 +100,6 @@ shouldBe("testInitEvent('Mouse', '\"a\", false, false, window, 1001, 1002, 1003,
shouldBe("testInitEvent('Mouse', '\"a\", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, document').fromElement", "document");
shouldBe("testInitEvent('Mouse', '\"a\", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').toElement", "null");
shouldBe("testInitEvent('Mouse', '\"a\", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').dataTransfer", "null");
-shouldBe("testInitEvent('Mouse', '\"a\", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').keyCode", "0");
-shouldBe("testInitEvent('Mouse', '\"a\", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').charCode", "0");
shouldBe("testInitEvent('Mouse', '\"a\", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').layerX", "1004");
shouldBe("testInitEvent('Mouse', '\"a\", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').layerY", "1005");
shouldBe("testInitEvent('Mouse', '\"a\", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').pageX", "1004");
@@ -150,8 +148,6 @@ shouldBe("testInitEvent('Text', '\"a\", false, false, null, \"b\"').view", "null
shouldBe("testInitEvent('Text', '\"a\", false, false, window, \"b\"').data", "'b'");
shouldBe("testInitEvent('Text', '\"a\", false, false, window, null').data", "'null'");
shouldBe("testInitEvent('Text', '\"a\", false, false, window, \"b\"').detail", "0");
-shouldBe("testInitEvent('Text', '\"a\", false, false, window, \"b\"').keyCode", "0");
-shouldBe("testInitEvent('Text', '\"a\", false, false, window, \"b\"').charCode", "0");
shouldBe("testInitEvent('Text', '\"a\", false, false, window, \"b\"').which", "0");
shouldBe("testInitEvent('UI', '\"a\", false, false, window, 1001').type", "'a'");
@@ -163,8 +159,6 @@ shouldBe("testInitEvent('UI', '\"a\", false, true, window, 1001').cancelable", "
shouldBe("testInitEvent('UI', '\"a\", false, false, window, 1001').view", "window");
shouldBe("testInitEvent('UI', '\"a\", false, false, null, 1001').view", "null");
shouldBe("testInitEvent('UI', '\"a\", false, false, window, 1001').detail", "1001");
-shouldBe("testInitEvent('UI', '\"a\", false, false, window, 1001').keyCode", "0");
-shouldBe("testInitEvent('UI', '\"a\", false, false, window, 1001').charCode", "0");
shouldBe("testInitEvent('UI', '\"a\", false, false, window, 1001').which", "0");
// WheelEvent has no init function yet; roughly speaking, we are waiting for that part of DOM 3 to stabilize.

Powered by Google App Engine
This is Rietveld 408576698