4 <script src=
"../../resources/js-test.js"></script>
7 testRunner
.dumpAsText();
10 // Create a pending stylesheet, this href intentionally 404s.
11 var linkTag
= document
.createElement('link');
12 linkTag
.href
= 'does-not-exist.css';
13 linkTag
.rel
= 'stylesheet';
14 document
.head
.appendChild(linkTag
);
16 var textDiv
= document
.createElement('div');
17 textDiv
.setAttribute('id', 'text');
18 textDiv
.appendChild(document
.createTextNode('test'));
19 document
.getElementById('testDiv').appendChild(textDiv
);
21 shouldBe('document.getElementById("text").clientWidth', 'document.getElementById("text").clientWidth');
25 <body onload=
"test()">
26 <div id=
"testDiv"></div>