| 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'; | |
| 65 | 64 |
| 66 if (typeof (src) != 'undefined') { | 65 if (typeof (src) != 'undefined') { |
| 67 iframe.src = src; | 66 iframe.src = src; |
| 68 } | 67 } |
| 69 document.body.appendChild(iframe); | 68 document.body.appendChild(iframe); |
| 70 context.iframes.push(iframe); | 69 context.iframes.push(iframe); |
| 71 | 70 |
| 72 assert_true(typeof (iframe.contentWindow) != 'undefined' | 71 assert_true(typeof (iframe.contentWindow) != 'undefined' |
| 73 && typeof (iframe.contentWindow.document) != 'undefined' | 72 && typeof (iframe.contentWindow.document) != 'undefined' |
| 74 && iframe.contentWindow.document != document, | 73 && iframe.contentWindow.document != document, |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 } | 177 } |
| 179 } | 178 } |
| 180 | 179 |
| 181 function checkBodyTemplateContent(d, html, id, nodeName) { | 180 function checkBodyTemplateContent(d, html, id, nodeName) { |
| 182 checkTemplateContent(d, d.body, html, id, nodeName); | 181 checkTemplateContent(d, d.body, html, id, nodeName); |
| 183 } | 182 } |
| 184 | 183 |
| 185 function checkHeadTemplateContent(d, html, id, nodeName) { | 184 function checkHeadTemplateContent(d, html, id, nodeName) { |
| 186 checkTemplateContent(d, d.head, html, id, nodeName); | 185 checkTemplateContent(d, d.head, html, id, nodeName); |
| 187 } | 186 } |
| OLD | NEW |