OLD | NEW |
| (Empty) |
1 This page tests whether custom properties on DOM objects persist after garbage c
ollection. | |
2 | |
3 If the test passes, you'll see a series of 'PASS' messages below. | |
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. | |
6 | |
7 DOM OBJECTS BEFORE GARBAGE COLLECTION: | |
8 PASS: document.implementation.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. | |
11 PASS: document.body.attributes.myCustomProperty should be 1 and is. | |
12 PASS: document.getElementsByTagName('body').myCustomProperty should be 1 and is. | |
13 PASS: document.getElementsByTagName('canvas')[0].getContext('2d').myCustomProper
ty should be 1 and is. | |
14 PASS: document.getElementsByTagName('canvas')[0].getContext('2d').createLinearGr
adient(0, 0, 0, 0).myCustomProperty should be undefined and is. | |
15 PASS: document.getElementsByTagName('canvas')[0].getContext('2d').createPattern(
new Image(), 'no-repeat').myCustomProperty should be undefined and is. | |
16 PASS: document.getElementsByTagName('select')[0].options.myCustomProperty should
be 1 and is. | |
17 PASS: document.body.childNodes.myCustomProperty should be 1 and is. | |
18 PASS: document.all.myCustomProperty should be 1 and is. | |
19 PASS: document.images.myCustomProperty should be 1 and is. | |
20 PASS: document.embeds.myCustomProperty should be 1 and is. | |
21 PASS: document.applets.myCustomProperty should be 1 and is. | |
22 PASS: document.links.myCustomProperty should be 1 and is. | |
23 PASS: document.forms.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. | |
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. | |
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. | |
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. | |
32 PASS: document.getElementsByTagName('map')[0].areas.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. | |
36 PASS: document.styleSheets[0].myCustomProperty should be 1 and is. | |
37 PASS: document.styleSheets[0].cssRules.myCustomProperty should be 1 and is. | |
38 PASS: document.styleSheets[0].cssRules[0].myCustomProperty should be 1 and is. | |
39 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. | |
41 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. | |
43 DOM OBJECTS AFTER GARBAGE COLLECTION: | |
44 PASS: document.implementation.myCustomProperty should be 1 and is. | |
45 PASS: document.myCustomProperty should be 1 and is. | |
46 PASS: document.body.myCustomProperty should be 1 and is. | |
47 PASS: document.body.attributes.myCustomProperty should be 1 and is. | |
48 PASS: document.getElementsByTagName('body').myCustomProperty should be 1 and is. | |
49 PASS: document.getElementsByTagName('canvas')[0].getContext('2d').myCustomProper
ty should be 1 and is. | |
50 PASS: document.getElementsByTagName('canvas')[0].getContext('2d').createLinearGr
adient(0, 0, 0, 0).myCustomProperty should be undefined and is. | |
51 PASS: document.getElementsByTagName('canvas')[0].getContext('2d').createPattern(
new Image(), 'no-repeat').myCustomProperty should be undefined and is. | |
52 PASS: document.getElementsByTagName('select')[0].options.myCustomProperty should
be 1 and is. | |
53 PASS: document.body.childNodes.myCustomProperty should be 1 and is. | |
54 PASS: document.all.myCustomProperty should be 1 and is. | |
55 PASS: document.images.myCustomProperty should be 1 and is. | |
56 PASS: document.embeds.myCustomProperty should be 1 and is. | |
57 PASS: document.applets.myCustomProperty should be 1 and is. | |
58 PASS: document.links.myCustomProperty should be 1 and is. | |
59 PASS: document.forms.myCustomProperty should be 1 and is. | |
60 PASS: document.anchors.myCustomProperty should be 1 and is. | |
61 PASS: document.scripts.myCustomProperty should be 1 and is. | |
62 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. | |
64 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. | |
66 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. | |
68 PASS: document.getElementsByTagName('map')[0].areas.myCustomProperty should be 1
and is. | |
69 PASS: document.body.style.myCustomProperty should be 1 and is. | |
70 PASS: document.body.style.getPropertyCSSValue('color').myCustomProperty should b
e 1 and is. | |
71 PASS: document.styleSheets.myCustomProperty should be 1 and is. | |
72 PASS: document.styleSheets[0].myCustomProperty should be 1 and is. | |
73 PASS: document.styleSheets[0].cssRules.myCustomProperty should be 1 and is. | |
74 PASS: document.styleSheets[0].cssRules[0].myCustomProperty should be 1 and is. | |
75 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. | |
77 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. | |
79 DOM EVENT BEFORE GARBAGE COLLECTION | |
80 PASS: event.myCustomProperty should be 1 and is. | |
81 DOM EVENT AFTER GARBAGE COLLECTION | |
82 PASS: event.myCustomProperty should be 1 and is. | |
83 | |
OLD | NEW |