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

Side by Side Diff: LayoutTests/fast/events/constructors/wheel-event-constructor.html

Issue 85263002: Improve handling of dictionary conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have conversion methods take a context argument; elaborate error msgs further. Created 7 years 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 8
9 description("This tests the constructor for the WheelEvent DOM class."); 9 description("This tests the constructor for the WheelEvent DOM class.");
10 10
(...skipping 27 matching lines...) Expand all
38 // cancelable is passed. 38 // cancelable is passed.
39 shouldBe("new WheelEvent('eventType', { cancelable: false }).cancelable", "false "); 39 shouldBe("new WheelEvent('eventType', { cancelable: false }).cancelable", "false ");
40 shouldBe("new WheelEvent('eventType', { cancelable: true }).cancelable", "true") ; 40 shouldBe("new WheelEvent('eventType', { cancelable: true }).cancelable", "true") ;
41 41
42 // view is passed. 42 // view is passed.
43 // Window objects. 43 // Window objects.
44 shouldBe("new WheelEvent('eventType', { view: window }).view", "window"); 44 shouldBe("new WheelEvent('eventType', { view: window }).view", "window");
45 shouldBe("new WheelEvent('eventType', { view: this }).view", "this"); 45 shouldBe("new WheelEvent('eventType', { view: this }).view", "this");
46 46
47 // Non-window objects. 47 // Non-window objects.
48 shouldBe("new WheelEvent('eventType', { view: testObject }).view", "null"); 48 shouldThrow("new WheelEvent('eventType', { view: testObject }).view");
49 shouldBe("new WheelEvent('eventType', { view: document }).view", "null"); 49 shouldThrow("new WheelEvent('eventType', { view: document }).view");
50 shouldBe("new WheelEvent('eventType', { view: undefined }).view", "null"); 50 shouldBe("new WheelEvent('eventType', { view: undefined }).view", "null");
51 shouldBe("new WheelEvent('eventType', { view: null }).view", "null"); 51 shouldBe("new WheelEvent('eventType', { view: null }).view", "null");
52 shouldBe("new WheelEvent('eventType', { view: false }).view", "null"); 52 shouldThrow("new WheelEvent('eventType', { view: false }).view");
53 shouldBe("new WheelEvent('eventType', { view: true }).view", "null"); 53 shouldThrow("new WheelEvent('eventType', { view: true }).view");
54 shouldBe("new WheelEvent('eventType', { view: '' }).view", "null"); 54 shouldThrow("new WheelEvent('eventType', { view: '' }).view");
55 shouldBe("new WheelEvent('eventType', { view: 'chocolate' }).view", "null"); 55 shouldThrow("new WheelEvent('eventType', { view: 'chocolate' }).view");
56 shouldBe("new WheelEvent('eventType', { view: 12345 }).view", "null"); 56 shouldThrow("new WheelEvent('eventType', { view: 12345 }).view");
57 shouldBe("new WheelEvent('eventType', { view: 18446744073709551615 }).view", "nu ll"); 57 shouldThrow("new WheelEvent('eventType', { view: 18446744073709551615 }).view");
58 shouldBe("new WheelEvent('eventType', { view: NaN }).view", "null"); 58 shouldThrow("new WheelEvent('eventType', { view: NaN }).view");
59 // Note that valueOf() is not called, when the left hand side is evaluated. 59 // Note that valueOf() is not called, when the left hand side is evaluated.
60 shouldBeFalse("new WheelEvent('eventType', { view: {valueOf: function () { retur n window; } } }).view == window"); 60 shouldThrow("new WheelEvent('eventType', { view: {valueOf: function () { return window; } } }).view == window");
61 shouldBe("new WheelEvent('eventType', { get view() { return 123; } }).view", "nu ll"); 61 shouldBe("new WheelEvent('eventType', { get view() { return window; } }).view", "window");
62 shouldThrow("new WheelEvent('eventType', { get view() { return 123; } }).view");
62 shouldThrow("new WheelEvent('eventType', { get view() { throw 'WheelEvent Error' ; } })"); 63 shouldThrow("new WheelEvent('eventType', { get view() { throw 'WheelEvent Error' ; } })");
63 64
64 // Max/min for client positions (LayoutUnit max/min). 65 // Max/min for client positions (LayoutUnit max/min).
65 var MAX_CLIENT_SIZE = "33554431"; 66 var MAX_CLIENT_SIZE = "33554431";
66 var MIN_CLIENT_SIZE = "-33554432"; 67 var MIN_CLIENT_SIZE = "-33554432";
67 68
68 // detail, screenX, screenY, clientX and clientY are passed. 69 // detail, screenX, screenY, clientX and clientY are passed.
69 ["detail", "screenX", "screenY", "clientX", "clientY", "wheelDeltaX", "wheelDelt aY"].forEach(function (attr) { 70 ["detail", "screenX", "screenY", "clientX", "clientY", "wheelDeltaX", "wheelDelt aY"].forEach(function (attr) {
70 // numbers within the long range. 71 // numbers within the long range.
71 shouldBe("new WheelEvent('eventType', { " + attr + ": 0 })." + attr, "0"); 72 shouldBe("new WheelEvent('eventType', { " + attr + ": 0 })." + attr, "0");
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 shouldBe("new WheelEvent('eventType', { button: {moemoe: 12345} }).button", "0") ; 170 shouldBe("new WheelEvent('eventType', { button: {moemoe: 12345} }).button", "0") ;
170 shouldBe("new WheelEvent('eventType', { button: {valueOf: function () { return 1 2345; }} }).button", "12345"); 171 shouldBe("new WheelEvent('eventType', { button: {valueOf: function () { return 1 2345; }} }).button", "12345");
171 172
172 // relatedTarget is passed. 173 // relatedTarget is passed.
173 // Valid objects. 174 // Valid objects.
174 shouldBe("new WheelEvent('eventType', { relatedTarget: testDiv }).relatedTarget" , "testDiv"); 175 shouldBe("new WheelEvent('eventType', { relatedTarget: testDiv }).relatedTarget" , "testDiv");
175 shouldBe("new WheelEvent('eventType', { relatedTarget: document }).relatedTarget ", "document"); 176 shouldBe("new WheelEvent('eventType', { relatedTarget: document }).relatedTarget ", "document");
176 shouldBe("new WheelEvent('eventType', { relatedTarget: xhr }).relatedTarget", "x hr"); 177 shouldBe("new WheelEvent('eventType', { relatedTarget: xhr }).relatedTarget", "x hr");
177 178
178 // Invalid objects. 179 // Invalid objects.
179 shouldBe("new WheelEvent('eventType', { relatedTarget: testObject }).relatedTarg et", "null"); 180 shouldThrow("new WheelEvent('eventType', { relatedTarget: testObject }).relatedT arget");
180 shouldBe("new WheelEvent('eventType', { relatedTarget: undefined }).relatedTarge t", "null"); 181 shouldBe("new WheelEvent('eventType', { relatedTarget: undefined }).relatedTarge t", "null");
181 shouldBe("new WheelEvent('eventType', { relatedTarget: null }).relatedTarget", " null"); 182 shouldBe("new WheelEvent('eventType', { relatedTarget: null }).relatedTarget", " null");
182 shouldBe("new WheelEvent('eventType', { relatedTarget: false }).relatedTarget", "null"); 183 shouldThrow("new WheelEvent('eventType', { relatedTarget: false }).relatedTarget ");
183 shouldBe("new WheelEvent('eventType', { relatedTarget: true }).relatedTarget", " null"); 184 shouldThrow("new WheelEvent('eventType', { relatedTarget: true }).relatedTarget" );
184 shouldBe("new WheelEvent('eventType', { relatedTarget: '' }).relatedTarget", "nu ll"); 185 shouldThrow("new WheelEvent('eventType', { relatedTarget: '' }).relatedTarget");
185 shouldBe("new WheelEvent('eventType', { relatedTarget: 'chocolate' }).relatedTar get", "null"); 186 shouldThrow("new WheelEvent('eventType', { relatedTarget: 'chocolate' }).related Target");
186 shouldBe("new WheelEvent('eventType', { relatedTarget: 12345 }).relatedTarget", "null"); 187 shouldThrow("new WheelEvent('eventType', { relatedTarget: 12345 }).relatedTarget ");
187 shouldBe("new WheelEvent('eventType', { relatedTarget: 18446744073709551615 }).r elatedTarget", "null"); 188 shouldThrow("new WheelEvent('eventType', { relatedTarget: 18446744073709551615 } ).relatedTarget");
188 shouldBe("new WheelEvent('eventType', { relatedTarget: NaN }).relatedTarget", "n ull"); 189 shouldThrow("new WheelEvent('eventType', { relatedTarget: NaN }).relatedTarget") ;
189 // Note that valueOf() is not called, when the left hand side is evaluated. 190 // Note that valueOf() is not called, when the left hand side is evaluated.
190 shouldBeFalse("new WheelEvent('eventType', { relatedTarget: {valueOf: function ( ) { return testDiv; } } }).relatedTarget == testDiv"); 191 shouldThrow("new WheelEvent('eventType', { relatedTarget: {valueOf: function () { return testDiv; } } }).relatedTarget == testDiv");
191 shouldBe("new WheelEvent('eventType', { get relatedTarget() { return 123; } }).r elatedTarget", "null"); 192 shouldBe("new WheelEvent('eventType', { get relatedTarget() { return testDiv; } }).relatedTarget", "testDiv");
193 shouldThrow("new WheelEvent('eventType', { get relatedTarget() { return 123; } } ).relatedTarget");
192 shouldThrow("new WheelEvent('eventType', { get relatedTarget() { throw 'WheelEve nt Error'; } })"); 194 shouldThrow("new WheelEvent('eventType', { get relatedTarget() { throw 'WheelEve nt Error'; } })");
193 195
194 // All initializers are passed. 196 // All initializers are passed.
195 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).bubbles", "true"); 197 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).bubbles", "true");
196 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).cancelable", "true"); 198 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).cancelable", "true");
197 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).view", "window"); 199 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).view", "window");
198 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).detail", "111"); 200 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).detail", "111");
199 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).screenX", "222"); 201 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).screenX", "222");
200 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).screenY", "333"); 202 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).screenY", "333");
201 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).clientX", "444"); 203 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).clientX", "444");
202 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).clientY", "555"); 204 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).clientY", "555");
203 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).ctrlKey", "true"); 205 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).ctrlKey", "true");
204 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).shiftKey", "true"); 206 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).shiftKey", "true");
205 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).altKey", "true"); 207 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).altKey", "true");
206 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).metaKey", "true"); 208 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).metaKey", "true");
207 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).button", "666"); 209 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).button", "666");
208 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).relatedTarget", "testDiv"); 210 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).relatedTarget", "testDiv");
209 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).wheelDeltaX", "777"); 211 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).wheelDeltaX", "777");
210 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).wheelDeltaY", "888"); 212 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).wheelDeltaY", "888");
211 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).deltaMode", "WheelEvent.DOM_DELTA_PAGE"); 213 shouldBe("new WheelEvent('eventType', { bubbles: true, cancelable: true, view: w indow, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrl Key: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarg et: testDiv, wheelDeltaX: 777, wheelDeltaY: 888, deltaMode: WheelEvent.DOM_DELTA _PAGE }).deltaMode", "WheelEvent.DOM_DELTA_PAGE");
212 </script> 214 </script>
213 </body> 215 </body>
214 </html> 216 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698