Commit 4e4e81aa authored by aliceli1's avatar aliceli1

Reviewed by Justin.

        * fast/dom/HTMLHeadElement/head-link-style-href-check-expected.checksum: Added.
        * fast/dom/HTMLHeadElement/head-link-style-href-check-expected.png: Added.
        * fast/dom/HTMLHeadElement/head-link-style-href-check-expected.txt: Added.
        * fast/dom/HTMLHeadElement/head-link-style-href-check.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13370 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 42e58c6d
2006-03-17 Alice Liu <alice.liu@apple.com>
Reviewed by Justin.
* fast/dom/HTMLHeadElement/head-link-style-href-check-expected.checksum: Added.
* fast/dom/HTMLHeadElement/head-link-style-href-check-expected.png: Added.
* fast/dom/HTMLHeadElement/head-link-style-href-check-expected.txt: Added.
* fast/dom/HTMLHeadElement/head-link-style-href-check.html: Added.
2006-03-17 Geoffrey Garen <ggaren@apple.com>
Reviewed by Darin.
......
4cfdff8382ec3e2972b2b36a0af3902a
\ No newline at end of file
layer at (0,0) size 800x600
RenderCanvas at (0,0) size 800x600
layer at (0,0) size 800x280
RenderBlock {HTML} at (0,0) size 800x280
RenderBody {BODY} at (8,16) size 784x256
RenderBlock {P} at (0,0) size 784x72
RenderText {TEXT} at (0,0) size 782x72
text run at (0,0) width 782: "This is a test to check if the loading of a stylesheet is properly cancelled (count of pending style sheets is decremented) when"
text run at (0,18) width 552: "its link tag is changed through the DOM after the link tag is appended to the document. "
text run at (552,18) width 227: "When the div with style is moved, it"
text run at (0,36) width 777: "appears on the screen if the style was loaded properly, and doesn't appear when there are out-standing stylesheets according"
text run at (0,54) width 119: "to the DocLoader. "
text run at (119,54) width 27: "See "
RenderInline {A} at (0,0) size 32x18 [color=#0000EE]
RenderText {TEXT} at (146,54) size 32x18
text run at (146,54) width 32: "6999"
RenderBlock {P} at (0,88) size 784x18
RenderInline {SPAN} at (0,0) size 32x18 [color=#FF0000]
RenderText {TEXT} at (0,0) size 32x18
text run at (0,0) width 32: "Fails"
RenderText {TEXT} at (32,0) size 52x18
text run at (32,0) width 52: " if there "
RenderInline {SPAN} at (0,0) size 31x18 [color=#FF0000]
RenderText {TEXT} at (84,0) size 31x18
text run at (84,0) width 31: "is no"
RenderText {TEXT} at (115,0) size 151x18
text run at (115,0) width 151: " pink box on the screen."
RenderBlock {P} at (0,122) size 784x18
RenderInline {SPAN} at (0,0) size 43x18 [color=#008000]
RenderText {TEXT} at (0,0) size 43x18
text run at (0,0) width 43: "Passes"
RenderText {TEXT} at (43,0) size 52x18
text run at (43,0) width 52: " if there "
RenderInline {SPAN} at (0,0) size 10x18 [color=#008000]
RenderText {TEXT} at (95,0) size 10x18
text run at (95,0) width 10: "is"
RenderText {TEXT} at (105,0) size 162x18
text run at (105,0) width 162: " a pink box on the screen."
RenderBlock {DIV} at (0,156) size 100x100 [bgcolor=#FFCCFF]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<script type="text/javascript">
function moveDiv(dv) {
dv.style.left = '100px';
dv.style.top = '100px';
}
var oHead = document.getElementsByTagName('head')[0];
function createAndAppend() {
if (window.layoutTestController) {
layoutTestController.waitUntilDone();
}
var oElm = document.createElement('div')
oElm.style.background = '#FCF';
oElm.style.width = '100px';
oElm.style.height = '100px';
document.body.appendChild(oElm);
var oLink = document.createElement('link');
oLink.setAttribute('rel', 'stylesheet');
oLink.setAttribute('type', 'text/css');
oLink.setAttribute('media', 'screen');
oLink.setAttribute('href','about:blank;');
oHead.appendChild(oLink);
oLink.setAttribute('href','about:blank;');
setTimeout(moveDiv(oElm), 1000);
if (window.layoutTestController) {
layoutTestController.notifyDone();
}
}
</script>
</head>
<body onload="createAndAppend();">
<p>This is a test to check if the loading of a stylesheet is properly cancelled (count of pending style sheets is decremented) when its link tag is changed through the DOM after the link tag is appended to the document. When the div with style is moved, it appears on the screen if the style was loaded properly, and doesn't appear when there are out-standing stylesheets according to the DocLoader. See <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=6999">6999</a></p>
<p><span style="color: red; font-weight: bold;">Fails</span> if there <span style="color: red; font-weight: bold;">is no</span> pink box on the screen.</p>
<p><span style="color: green; font-weight: bold;">Passes</span> if there <span style="color: green; font-weight: bold;">is</span> a pink box on the screen.</p>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment