OLD | NEW |
1 /* | 1 /* |
2 Distributed under both the W3C Test Suite License [1] and the W3C | 2 Distributed under both the W3C Test Suite License [1] and the W3C |
3 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the | 3 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the |
4 policies and contribution forms [3]. | 4 policies and contribution forms [3]. |
5 | 5 |
6 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license | 6 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license |
7 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license | 7 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license |
8 [3] http://www.w3.org/2004/10/27-testcases | 8 [3] http://www.w3.org/2004/10/27-testcases |
9 */ | 9 */ |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 return d; | 54 return d; |
55 } | 55 } |
56 | 56 |
57 function newIFrame(context, src) { | 57 function newIFrame(context, src) { |
58 if (typeof (context) === 'undefined' | 58 if (typeof (context) === 'undefined' |
59 || typeof (context.iframes) !== 'object') { | 59 || typeof (context.iframes) !== 'object') { |
60 assert_unreached('Illegal context object in newIFrame'); | 60 assert_unreached('Illegal context object in newIFrame'); |
61 } | 61 } |
62 | 62 |
63 var iframe = document.createElement('iframe'); | 63 var iframe = document.createElement('iframe'); |
| 64 iframe.style.display = 'none'; |
64 | 65 |
65 if (typeof (src) != 'undefined') { | 66 if (typeof (src) != 'undefined') { |
66 iframe.src = src; | 67 iframe.src = src; |
67 } | 68 } |
68 document.body.appendChild(iframe); | 69 document.body.appendChild(iframe); |
69 context.iframes.push(iframe); | 70 context.iframes.push(iframe); |
70 | 71 |
71 assert_true(typeof (iframe.contentWindow) != 'undefined' | 72 assert_true(typeof (iframe.contentWindow) != 'undefined' |
72 && typeof (iframe.contentWindow.document) != 'undefined' | 73 && typeof (iframe.contentWindow.document) != 'undefined' |
73 && iframe.contentWindow.document != document, | 74 && iframe.contentWindow.document != document, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 } | 178 } |
178 } | 179 } |
179 | 180 |
180 function checkBodyTemplateContent(d, html, id, nodeName) { | 181 function checkBodyTemplateContent(d, html, id, nodeName) { |
181 checkTemplateContent(d, d.body, html, id, nodeName); | 182 checkTemplateContent(d, d.body, html, id, nodeName); |
182 } | 183 } |
183 | 184 |
184 function checkHeadTemplateContent(d, html, id, nodeName) { | 185 function checkHeadTemplateContent(d, html, id, nodeName) { |
185 checkTemplateContent(d, d.head, html, id, nodeName); | 186 checkTemplateContent(d, d.head, html, id, nodeName); |
186 } | 187 } |
OLD | NEW |