OLD | NEW |
1 This page tests whether custom properties on DOM objects persist after garbage c
ollection. | 1 This page tests whether custom properties on DOM objects persist after garbage c
ollection. |
2 | 2 |
3 If the test passes, you'll see a series of 'PASS' messages below. | 3 If the test passes, you'll see a series of 'PASS' messages below. |
4 | 4 |
5 Because neither WinIE nor FF has reasonable or predictable behavior in this scen
ario, this test just documents our behavior to ensure that we don't change it ac
cidentally. It is not a prescription for how things should behave. | 5 Because neither WinIE nor FF has reasonable or predictable behavior in this scen
ario, this test just documents our behavior to ensure that we don't change it ac
cidentally. It is not a prescription for how things should behave. |
6 | 6 |
7 DOM OBJECTS BEFORE GARBAGE COLLECTION: | 7 DOM OBJECTS BEFORE GARBAGE COLLECTION: |
8 PASS: document.implementation.myCustomProperty should be 1 and is. | 8 PASS: document.implementation.myCustomProperty should be 1 and is. |
9 PASS: document.myCustomProperty should be 1 and is. | 9 PASS: document.myCustomProperty should be 1 and is. |
10 PASS: document.body.myCustomProperty should be 1 and is. | 10 PASS: document.body.myCustomProperty should be 1 and is. |
(...skipping 13 matching lines...) Expand all Loading... |
24 PASS: document.anchors.myCustomProperty should be 1 and is. | 24 PASS: document.anchors.myCustomProperty should be 1 and is. |
25 PASS: document.scripts.myCustomProperty should be 1 and is. | 25 PASS: document.scripts.myCustomProperty should be 1 and is. |
26 PASS: document.getElementsByTagName('form')[0].elements.myCustomProperty should
be 1 and is. | 26 PASS: document.getElementsByTagName('form')[0].elements.myCustomProperty should
be 1 and is. |
27 PASS: document.getElementsByTagName('table')[0].rows.myCustomProperty should be
1 and is. | 27 PASS: document.getElementsByTagName('table')[0].rows.myCustomProperty should be
1 and is. |
28 PASS: document.getElementsByTagName('table')[0].rows[0].cells.myCustomProperty s
hould be 1 and is. | 28 PASS: document.getElementsByTagName('table')[0].rows[0].cells.myCustomProperty s
hould be 1 and is. |
29 PASS: document.getElementsByTagName('table')[0].tBodies.myCustomProperty should
be 1 and is. | 29 PASS: document.getElementsByTagName('table')[0].tBodies.myCustomProperty should
be 1 and is. |
30 PASS: document.getElementsByTagName('table')[0].tBodies[0].rows.myCustomProperty
should be 1 and is. | 30 PASS: document.getElementsByTagName('table')[0].tBodies[0].rows.myCustomProperty
should be 1 and is. |
31 PASS: document.body.children.myCustomProperty should be 1 and is. | 31 PASS: document.body.children.myCustomProperty should be 1 and is. |
32 PASS: document.getElementsByTagName('map')[0].areas.myCustomProperty should be 1
and is. | 32 PASS: document.getElementsByTagName('map')[0].areas.myCustomProperty should be 1
and is. |
33 PASS: document.body.style.myCustomProperty should be 1 and is. | 33 PASS: document.body.style.myCustomProperty should be 1 and is. |
34 PASS: document.body.style.getPropertyCSSValue('color').myCustomProperty should b
e 1 and is. | |
35 PASS: document.styleSheets.myCustomProperty should be 1 and is. | 34 PASS: document.styleSheets.myCustomProperty should be 1 and is. |
36 PASS: document.styleSheets[0].myCustomProperty should be 1 and is. | 35 PASS: document.styleSheets[0].myCustomProperty should be 1 and is. |
37 PASS: document.styleSheets[0].cssRules.myCustomProperty should be 1 and is. | 36 PASS: document.styleSheets[0].cssRules.myCustomProperty should be 1 and is. |
38 PASS: document.styleSheets[0].cssRules[0].myCustomProperty should be 1 and is. | 37 PASS: document.styleSheets[0].cssRules[0].myCustomProperty should be 1 and is. |
39 PASS: new XPathEvaluator().myCustomProperty should be undefined and is. | 38 PASS: new XPathEvaluator().myCustomProperty should be undefined and is. |
40 PASS: new XPathEvaluator().evaluate('/', document, null, 0, null).myCustomProper
ty should be undefined and is. | 39 PASS: new XPathEvaluator().evaluate('/', document, null, 0, null).myCustomProper
ty should be undefined and is. |
41 PASS: document.createNSResolver(document).myCustomProperty should be undefined a
nd is. | 40 PASS: document.createNSResolver(document).myCustomProperty should be undefined a
nd is. |
42 PASS: document.createExpression('/', document.createNSResolver(document)).myCust
omProperty should be undefined and is. | 41 PASS: document.createExpression('/', document.createNSResolver(document)).myCust
omProperty should be undefined and is. |
43 DOM OBJECTS AFTER GARBAGE COLLECTION: | 42 DOM OBJECTS AFTER GARBAGE COLLECTION: |
44 PASS: document.implementation.myCustomProperty should be 1 and is. | 43 PASS: document.implementation.myCustomProperty should be 1 and is. |
(...skipping 15 matching lines...) Expand all Loading... |
60 PASS: document.anchors.myCustomProperty should be 1 and is. | 59 PASS: document.anchors.myCustomProperty should be 1 and is. |
61 PASS: document.scripts.myCustomProperty should be 1 and is. | 60 PASS: document.scripts.myCustomProperty should be 1 and is. |
62 PASS: document.getElementsByTagName('form')[0].elements.myCustomProperty should
be 1 and is. | 61 PASS: document.getElementsByTagName('form')[0].elements.myCustomProperty should
be 1 and is. |
63 PASS: document.getElementsByTagName('table')[0].rows.myCustomProperty should be
1 and is. | 62 PASS: document.getElementsByTagName('table')[0].rows.myCustomProperty should be
1 and is. |
64 PASS: document.getElementsByTagName('table')[0].rows[0].cells.myCustomProperty s
hould be 1 and is. | 63 PASS: document.getElementsByTagName('table')[0].rows[0].cells.myCustomProperty s
hould be 1 and is. |
65 PASS: document.getElementsByTagName('table')[0].tBodies.myCustomProperty should
be 1 and is. | 64 PASS: document.getElementsByTagName('table')[0].tBodies.myCustomProperty should
be 1 and is. |
66 PASS: document.getElementsByTagName('table')[0].tBodies[0].rows.myCustomProperty
should be 1 and is. | 65 PASS: document.getElementsByTagName('table')[0].tBodies[0].rows.myCustomProperty
should be 1 and is. |
67 PASS: document.body.children.myCustomProperty should be 1 and is. | 66 PASS: document.body.children.myCustomProperty should be 1 and is. |
68 PASS: document.getElementsByTagName('map')[0].areas.myCustomProperty should be 1
and is. | 67 PASS: document.getElementsByTagName('map')[0].areas.myCustomProperty should be 1
and is. |
69 FAIL: document.body.style.myCustomProperty should be 1 but instead is undefined. | 68 FAIL: document.body.style.myCustomProperty should be 1 but instead is undefined. |
70 FAIL: document.body.style.getPropertyCSSValue('color').myCustomProperty should b
e 1 but instead is undefined. | |
71 PASS: document.styleSheets.myCustomProperty should be 1 and is. | 69 PASS: document.styleSheets.myCustomProperty should be 1 and is. |
72 PASS: document.styleSheets[0].myCustomProperty should be 1 and is. | 70 PASS: document.styleSheets[0].myCustomProperty should be 1 and is. |
73 PASS: document.styleSheets[0].cssRules.myCustomProperty should be 1 and is. | 71 PASS: document.styleSheets[0].cssRules.myCustomProperty should be 1 and is. |
74 FAIL: document.styleSheets[0].cssRules[0].myCustomProperty should be 1 but inste
ad is undefined. | 72 FAIL: document.styleSheets[0].cssRules[0].myCustomProperty should be 1 but inste
ad is undefined. |
75 PASS: new XPathEvaluator().myCustomProperty should be undefined and is. | 73 PASS: new XPathEvaluator().myCustomProperty should be undefined and is. |
76 PASS: new XPathEvaluator().evaluate('/', document, null, 0, null).myCustomProper
ty should be undefined and is. | 74 PASS: new XPathEvaluator().evaluate('/', document, null, 0, null).myCustomProper
ty should be undefined and is. |
77 PASS: document.createNSResolver(document).myCustomProperty should be undefined a
nd is. | 75 PASS: document.createNSResolver(document).myCustomProperty should be undefined a
nd is. |
78 PASS: document.createExpression('/', document.createNSResolver(document)).myCust
omProperty should be undefined and is. | 76 PASS: document.createExpression('/', document.createNSResolver(document)).myCust
omProperty should be undefined and is. |
79 DOM EVENT BEFORE GARBAGE COLLECTION | 77 DOM EVENT BEFORE GARBAGE COLLECTION |
80 PASS: event.myCustomProperty should be 1 and is. | 78 PASS: event.myCustomProperty should be 1 and is. |
81 DOM EVENT AFTER GARBAGE COLLECTION | 79 DOM EVENT AFTER GARBAGE COLLECTION |
82 PASS: event.myCustomProperty should be 1 and is. | 80 PASS: event.myCustomProperty should be 1 and is. |
83 | 81 |
OLD | NEW |