OLD | NEW |
1 This test checks that we correctly update the scroll event handler count as even
t handlers are added and removed | 1 This test checks that we correctly update the scroll event handler count as even
t handlers are added and removed |
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 window.internals.scrollEventHandlerCount(document) is 0 | 6 PASS window.internals.scrollEventHandlerCount(document) is 0 |
7 PASS window.internals.scrollEventHandlerCount(document) is 1 | 7 PASS window.internals.scrollEventHandlerCount(document) is 1 |
8 PASS window.internals.scrollEventHandlerCount(document) is 2 | 8 PASS window.internals.scrollEventHandlerCount(document) is 2 |
9 PASS window.internals.scrollEventHandlerCount(document) is 1 | 9 PASS window.internals.scrollEventHandlerCount(document) is 1 |
10 PASS window.internals.scrollEventHandlerCount(document) is 1 | 10 PASS window.internals.scrollEventHandlerCount(document) is 1 |
11 PASS window.internals.scrollEventHandlerCount(document) is 0 | 11 PASS window.internals.scrollEventHandlerCount(document) is 0 |
| 12 Test setting onscroll on the document. |
12 PASS window.internals.scrollEventHandlerCount(document) is 0 | 13 PASS window.internals.scrollEventHandlerCount(document) is 0 |
13 PASS window.internals.scrollEventHandlerCount(document) is 1 | 14 PASS window.internals.scrollEventHandlerCount(document) is 1 |
14 PASS window.internals.scrollEventHandlerCount(document) is 1 | 15 PASS window.internals.scrollEventHandlerCount(document) is 1 |
15 PASS window.internals.scrollEventHandlerCount(document) is 0 | 16 PASS window.internals.scrollEventHandlerCount(document) is 0 |
16 Test that nested Documents' scroll handlers are properly tracked in their parent
Document. | 17 Test that nested Documents' scroll handlers are properly tracked in their parent
Document. |
17 PASS window.internals.scrollEventHandlerCount(document) is 1 | 18 PASS window.internals.scrollEventHandlerCount(document) is 1 |
18 PASS window.internals.scrollEventHandlerCount(nestedDocument) is 2 | 19 PASS window.internals.scrollEventHandlerCount(nestedDocument) is 2 |
19 PASS window.internals.scrollEventHandlerCount(document) is 2 | 20 PASS window.internals.scrollEventHandlerCount(document) is 2 |
20 PASS window.internals.scrollEventHandlerCount(nestedDocument) is 1 | 21 PASS window.internals.scrollEventHandlerCount(nestedDocument) is 1 |
21 PASS window.internals.scrollEventHandlerCount(document) is 1 | 22 PASS window.internals.scrollEventHandlerCount(document) is 1 |
22 PASS window.internals.scrollEventHandlerCount(document) is 1 | 23 PASS window.internals.scrollEventHandlerCount(document) is 1 |
23 Test that detaching a nested Document with handlers works properly. | 24 Test that detaching a nested Document with handlers works properly. |
24 PASS window.internals.scrollEventHandlerCount(nestedDocument) is 1 | 25 PASS window.internals.scrollEventHandlerCount(nestedDocument) is 2 |
25 PASS window.internals.scrollEventHandlerCount(document) is 1 | 26 PASS window.internals.scrollEventHandlerCount(document) is 2 |
26 PASS window.internals.scrollEventHandlerCount(document) is 0 | 27 PASS window.internals.scrollEventHandlerCount(document) is 0 |
27 Test moving event listeners from an unattached document to an attached one | 28 Test moving event listeners from an unattached document to an attached one |
28 PASS window.internals.scrollEventHandlerCount(doc) is 0 | 29 PASS window.internals.scrollEventHandlerCount(doc) is 0 |
29 PASS window.internals.scrollEventHandlerCount(document) is 0 | 30 PASS window.internals.scrollEventHandlerCount(document) is 0 |
30 PASS window.internals.scrollEventHandlerCount(document) is 2 | 31 PASS window.internals.scrollEventHandlerCount(document) is 2 |
31 PASS window.internals.scrollEventHandlerCount(document) is 2 | 32 PASS window.internals.scrollEventHandlerCount(document) is 2 |
32 PASS window.internals.scrollEventHandlerCount(document) is 0 | 33 PASS window.internals.scrollEventHandlerCount(document) is 0 |
33 Test moving event listeners from an attached document to an unattached one | 34 Test moving event listeners from an attached document to an unattached one |
| 35 PASS window.internals.scrollEventHandlerCount(document) is 3 |
| 36 PASS window.internals.scrollEventHandlerCount(document) is 0 |
| 37 Test moving a scroll event listener between documents belonging to the same page |
| 38 PASS window.internals.scrollEventHandlerCount(document) is 2 |
34 PASS window.internals.scrollEventHandlerCount(document) is 2 | 39 PASS window.internals.scrollEventHandlerCount(document) is 2 |
35 PASS window.internals.scrollEventHandlerCount(document) is 0 | 40 PASS window.internals.scrollEventHandlerCount(document) is 0 |
36 Test moving a scroll event listener between documents belonging to the same page | 41 Test addEventListener/removeEventListener on the window. |
| 42 PASS window.internals.scrollEventHandlerCount(document) is 0 |
| 43 PASS window.internals.scrollEventHandlerCount(document) is 1 |
| 44 PASS window.internals.scrollEventHandlerCount(document) is 2 |
37 PASS window.internals.scrollEventHandlerCount(document) is 1 | 45 PASS window.internals.scrollEventHandlerCount(document) is 1 |
38 PASS window.internals.scrollEventHandlerCount(document) is 1 | 46 PASS window.internals.scrollEventHandlerCount(document) is 1 |
39 PASS window.internals.scrollEventHandlerCount(document) is 0 | 47 PASS window.internals.scrollEventHandlerCount(document) is 0 |
| 48 Test setting onscroll on the window. |
| 49 PASS window.internals.scrollEventHandlerCount(document) is 0 |
| 50 PASS window.internals.scrollEventHandlerCount(document) is 1 |
| 51 PASS window.internals.scrollEventHandlerCount(document) is 1 |
| 52 PASS window.internals.scrollEventHandlerCount(document) is 0 |
40 PASS successfullyParsed is true | 53 PASS successfullyParsed is true |
41 | 54 |
42 TEST COMPLETE | 55 TEST COMPLETE |
43 | 56 |
44 | 57 |
OLD | NEW |