Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 This tests the constructor for the CompositionEvent DOM class. | 1 This tests the constructor for the CompositionEvent DOM class. |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". |
| 4 | 4 |
| 5 | 5 |
| 6 PASS new CompositionEvent('eventType').bubbles is false | 6 PASS new CompositionEvent('eventType').bubbles is false |
| 7 PASS new CompositionEvent('eventType').cancelable is false | 7 PASS new CompositionEvent('eventType').cancelable is false |
| 8 PASS new CompositionEvent('eventType').view is null | 8 PASS new CompositionEvent('eventType').view is null |
| 9 PASS new CompositionEvent('eventType').detail is 0 | 9 PASS new CompositionEvent('eventType').detail is 0 |
| 10 PASS new CompositionEvent('eventType').data is "" | 10 PASS new CompositionEvent('eventType').data is "" |
| 11 PASS new CompositionEvent('eventType', { bubbles: false }).bubbles is false | 11 PASS new CompositionEvent('eventType', { bubbles: false }).bubbles is false |
| 12 PASS new CompositionEvent('eventType', { bubbles: true }).bubbles is true | 12 PASS new CompositionEvent('eventType', { bubbles: true }).bubbles is true |
| 13 PASS new CompositionEvent('eventType', { cancelable: false }).cancelable is fals e | 13 PASS new CompositionEvent('eventType', { cancelable: false }).cancelable is fals e |
| 14 PASS new CompositionEvent('eventType', { cancelable: true }).cancelable is true | 14 PASS new CompositionEvent('eventType', { cancelable: true }).cancelable is true |
| 15 PASS new CompositionEvent('eventType', { view: window }).view is window | 15 PASS new CompositionEvent('eventType', { view: window }).view is window |
| 16 PASS new CompositionEvent('eventType', { view: this }).view is this | 16 PASS new CompositionEvent('eventType', { view: this }).view is this |
| 17 PASS new CompositionEvent('eventType', { view: testObject }).view is null | 17 PASS new CompositionEvent('eventType', { view: testObject }).view threw exceptio n TypeError: The 'view' property does not have a Window type.. |
|
Mike West
2013/11/25 08:22:48
Ideally, these would throw using the 'ExceptionMes
| |
| 18 PASS new CompositionEvent('eventType', { view: document }).view is null | 18 PASS new CompositionEvent('eventType', { view: document }).view threw exception TypeError: The 'view' property does not have a Window type.. |
| 19 PASS new CompositionEvent('eventType', { view: undefined }).view is null | 19 PASS new CompositionEvent('eventType', { view: undefined }).view is null |
| 20 PASS new CompositionEvent('eventType', { view: null }).view is null | 20 PASS new CompositionEvent('eventType', { view: null }).view is null |
| 21 PASS new CompositionEvent('eventType', { view: false }).view is null | 21 PASS new CompositionEvent('eventType', { view: false }).view threw exception Typ eError: The 'view' property does not have a Window type.. |
| 22 PASS new CompositionEvent('eventType', { view: true }).view is null | 22 PASS new CompositionEvent('eventType', { view: true }).view threw exception Type Error: The 'view' property does not have a Window type.. |
| 23 PASS new CompositionEvent('eventType', { view: '' }).view is null | 23 PASS new CompositionEvent('eventType', { view: '' }).view threw exception TypeEr ror: The 'view' property does not have a Window type.. |
| 24 PASS new CompositionEvent('eventType', { view: 'chocolate' }).view is null | 24 PASS new CompositionEvent('eventType', { view: 'chocolate' }).view threw excepti on TypeError: The 'view' property does not have a Window type.. |
| 25 PASS new CompositionEvent('eventType', { view: 12345 }).view is null | 25 PASS new CompositionEvent('eventType', { view: 12345 }).view threw exception Typ eError: The 'view' property does not have a Window type.. |
| 26 PASS new CompositionEvent('eventType', { view: 18446744073709551615 }).view is n ull | 26 PASS new CompositionEvent('eventType', { view: 18446744073709551615 }).view thre w exception TypeError: The 'view' property does not have a Window type.. |
| 27 PASS new CompositionEvent('eventType', { view: NaN }).view is null | 27 PASS new CompositionEvent('eventType', { view: NaN }).view threw exception TypeE rror: The 'view' property does not have a Window type.. |
| 28 PASS new CompositionEvent('eventType', { view: {valueOf: function () { return wi ndow; } } }).view == window is false | 28 PASS new CompositionEvent('eventType', { view: {valueOf: function () { return wi ndow; } } }).view == window threw exception TypeError: The 'view' property does not have a Window type.. |
| 29 PASS new CompositionEvent('eventType', { get view() { return 123; } }).view is n ull | 29 PASS new CompositionEvent('eventType', { get view() { return window; } }).view i s window |
| 30 PASS new CompositionEvent('eventType', { get view() { return 123; } }).view thre w exception TypeError: The 'view' property does not have a Window type.. | |
| 30 PASS new CompositionEvent('eventType', { get view() { throw 'CompositionEvent Er ror'; } }) threw exception CompositionEvent Error. | 31 PASS new CompositionEvent('eventType', { get view() { throw 'CompositionEvent Er ror'; } }) threw exception CompositionEvent Error. |
| 31 PASS new CompositionEvent('eventType', { data: 'koakuma' }).data is "koakuma" | 32 PASS new CompositionEvent('eventType', { data: 'koakuma' }).data is "koakuma" |
| 32 PASS new CompositionEvent('eventType', { data: '' }).data is "" | 33 PASS new CompositionEvent('eventType', { data: '' }).data is "" |
| 33 PASS new CompositionEvent('eventType', { data: undefined }).data is "undefined" | 34 PASS new CompositionEvent('eventType', { data: undefined }).data is "undefined" |
| 34 PASS new CompositionEvent('eventType', { data: null }).data is "null" | 35 PASS new CompositionEvent('eventType', { data: null }).data is "null" |
| 35 PASS new CompositionEvent('eventType', { data: false }).data is "false" | 36 PASS new CompositionEvent('eventType', { data: false }).data is "false" |
| 36 PASS new CompositionEvent('eventType', { data: true }).data is "true" | 37 PASS new CompositionEvent('eventType', { data: true }).data is "true" |
| 37 PASS new CompositionEvent('eventType', { data: 12345 }).data is "12345" | 38 PASS new CompositionEvent('eventType', { data: 12345 }).data is "12345" |
| 38 PASS new CompositionEvent('eventType', { data: 18446744073709551615 }).data is " 18446744073709552000" | 39 PASS new CompositionEvent('eventType', { data: 18446744073709551615 }).data is " 18446744073709552000" |
| 39 PASS new CompositionEvent('eventType', { data: NaN }).data is "NaN" | 40 PASS new CompositionEvent('eventType', { data: NaN }).data is "NaN" |
| 40 PASS new CompositionEvent('eventType', { data: [] }).data is "" | 41 PASS new CompositionEvent('eventType', { data: [] }).data is "" |
| 41 PASS new CompositionEvent('eventType', { data: [1, 2, 3] }).data is "1,2,3" | 42 PASS new CompositionEvent('eventType', { data: [1, 2, 3] }).data is "1,2,3" |
| 42 PASS new CompositionEvent('eventType', { data: {koakuma: 12345} }).data is "[obj ect Object]" | 43 PASS new CompositionEvent('eventType', { data: {koakuma: 12345} }).data is "[obj ect Object]" |
| 43 PASS new CompositionEvent('eventType', { data: {valueOf: function () { return 'k oakuma'; } } }).data is "[object Object]" | 44 PASS new CompositionEvent('eventType', { data: {valueOf: function () { return 'k oakuma'; } } }).data is "[object Object]" |
| 44 PASS new CompositionEvent('eventType', { bubbles: true, cancelable: true, view: window, detail: 111, data: 'koakuma' }).bubbles is true | 45 PASS new CompositionEvent('eventType', { bubbles: true, cancelable: true, view: window, detail: 111, data: 'koakuma' }).bubbles is true |
| 45 PASS new CompositionEvent('eventType', { bubbles: true, cancelable: true, view: window, detail: 111, data: 'koakuma' }).cancelable is true | 46 PASS new CompositionEvent('eventType', { bubbles: true, cancelable: true, view: window, detail: 111, data: 'koakuma' }).cancelable is true |
| 46 PASS new CompositionEvent('eventType', { bubbles: true, cancelable: true, view: window, detail: 111, data: 'koakuma' }).view is window | 47 PASS new CompositionEvent('eventType', { bubbles: true, cancelable: true, view: window, detail: 111, data: 'koakuma' }).view is window |
| 47 PASS new CompositionEvent('eventType', { bubbles: true, cancelable: true, view: window, detail: 111, data: 'koakuma' }).detail is 111 | 48 PASS new CompositionEvent('eventType', { bubbles: true, cancelable: true, view: window, detail: 111, data: 'koakuma' }).detail is 111 |
| 48 PASS new CompositionEvent('eventType', { bubbles: true, cancelable: true, view: window, detail: 111, data: 'koakuma' }).data is "koakuma" | 49 PASS new CompositionEvent('eventType', { bubbles: true, cancelable: true, view: window, detail: 111, data: 'koakuma' }).data is "koakuma" |
| 49 PASS successfullyParsed is true | 50 PASS successfullyParsed is true |
| 50 | 51 |
| 51 TEST COMPLETE | 52 TEST COMPLETE |
| 52 | 53 |
| OLD | NEW |