Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: third_party/WebKit/LayoutTests/html/document-metadata/head-link-style-href-check.html

Issue 2780363002: Rename subdirectory names in LayoutTests/html/. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
4 <head>
5 <script type="text/javascript">
6
7 function moveDiv(dv) {
8 dv.style.left = '100px';
9 dv.style.top = '100px';
10 }
11
12 var oHead = document.getElementsByTagName('head')[0];
13
14 function createAndAppend() {
15 if (window.testRunner) {
16 testRunner.waitUntilDone();
17 }
18
19 var oElm = document.createElement('div')
20 oElm.style.background = '#FCF';
21 oElm.style.width = '100px';
22 oElm.style.height = '100px';
23
24 document.body.appendChild(oElm);
25 document.body.offsetLeft;
26
27 var oLink = document.createElement('link');
28
29 oLink.setAttribute('rel', 'stylesheet');
30 oLink.setAttribute('type', 'text/css');
31 oLink.setAttribute('media', 'screen');
32 oLink.setAttribute('href','about:blank;');
33
34 oHead.appendChild(oLink);
35
36 oLink.setAttribute('href','about:blank;');
37
38 setTimeout(moveDiv(oElm), 1000);
39
40 if (window.testRunner) {
41 testRunner.notifyDone();
42 }
43 }
44 </script>
45 </head>
46 <body onload="createAndAppend();">
47 <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 thro ugh the DOM after the link tag is appended to the document. When the div with s tyle is moved, it appears on the screen if the style was loaded properly, and do esn't appear when there are out-standing stylesheets according to the DocLoader. See <a href="https://bugs.webkit.org/show_bug.cgi?id=6999">6999</a></p>
48 <p><span style="color: red; font-weight: bold;">Fails</span> if there <span styl e="color: red; font-weight: bold;">is no</span> pink box on the screen.</p>
49 <p><span style="color: green; font-weight: bold;">Passes</span> if there <span s tyle="color: green; font-weight: bold;">is</span> a pink box on the screen.</p>
50 </body>
51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698