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

Side by Side Diff: LayoutTests/fast/loader/resource-request-callbacks.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../js/resources/js-test-pre.js"></script>
5 <script> 5 <script>
6 window.jsTestIsAsync = true; 6 window.jsTestIsAsync = true;
7 if (window.testRunner) { 7 if (window.testRunner) {
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 testRunner.dumpResourceRequestCallbacks(); 9 testRunner.dumpResourceRequestCallbacks();
10 } else { 10 } else {
11 document.write("This test cannot run without a testRunner"); 11 document.write("This test cannot run without a testRunner");
12 } 12 }
13 13
14 function requestMoreResources() { 14 function requestMoreResources() {
15 document.getElementById("img-changing").src = "../../../../fast/images/resou rces/mu.png"; 15 document.getElementById("img-changing").src = "../images/resources/mu.png";
16 16
17 var createdImage = document.createElement("img"); 17 var createdImage = document.createElement("img");
18 createdImage.id = "img-created"; 18 createdImage.id = "img-created";
19 createdImage.src = "../../../../fast/images/resources/oval.png"; 19 createdImage.src = "../images/resources/oval.png";
20 document.getElementById("images").appendChild(createdImage); 20 document.getElementById("images").appendChild(createdImage);
21 21
22 document.getElementById("with-background").style.backgroundImage = "url(../. ./../../fast/images/resources/palatted-color-png-gamma-one-color-profile.png)"; 22 document.getElementById("with-background").style.backgroundImage = "url(../i mages/resources/palatted-color-png-gamma-one-color-profile.png)";
23 23
24 document.getElementById("more-images").innerHTML = "<img id='img-created-2' src='../../../../fast/images/resources/png_per_row_alpha.png'>"; 24 document.getElementById("more-images").innerHTML = "<img id='img-created-2' src='../images/resources/png_per_row_alpha.png'>";
25 25
26 var createdScript = document.createElement("script"); 26 var createdScript = document.createElement("script");
27 createdScript.id = "script-created"; 27 createdScript.id = "script-created";
28 createdScript.src = "../../../../fast/loader/resources/empty-script.js"; 28 createdScript.src = "../loader/resources/empty-script.js";
29 document.head.appendChild(createdScript); 29 document.head.appendChild(createdScript);
30 30
31 setTimeout(finishTest, 0); 31 setTimeout(finishTest, 0);
32 } 32 }
33 33
34 function finishTest() { 34 function finishTest() {
35 testPassed(""); 35 testPassed("");
36 finishJSTest(); 36 finishJSTest();
37 } 37 }
38 </script> 38 </script>
39 <style> 39 <style>
40 #with-background 40 #with-background
41 { 41 {
42 background-image:url("../../../../fast/images/resources/lenna.png"); 42 background-image:url("../images/resources/lenna.png");
43 } 43 }
44 body 44 body
45 { 45 {
46 cursor:url("../../../../fast/events/resources/greenbox-hotspot35-4.cur"), po inter; 46 cursor:url("../events/resources/greenbox-hotspot35-4.cur"), pointer;
47 } 47 }
48 @font-face 48 @font-face
49 { 49 {
50 font-family: custom_font; 50 font-family: custom_font;
51 src: url("../../../../fast/text/resources/gw432047.ttf"); 51 src: url("../text/resources/gw432047.ttf");
52 } 52 }
53 p 53 p
54 { 54 {
55 font-family: custom_font; 55 font-family: custom_font;
56 } 56 }
57 </style> 57 </style>
58 </head> 58 </head>
59 <body onload="setTimeout(requestMoreResources, 100);"> 59 <body onload="setTimeout(requestMoreResources, 100);">
60 <div id="with-background"> 60 <div id="with-background">
61 <p> 61 <p>
62 This test checks that the correct callbacks for resource requests are 62 This test checks that the correct callbacks for resource requests are
63 invoked. It passes if you see the callbacks for eight resources. 63 invoked. It passes if you see the callbacks for eight resources.
64 </p> 64 </p>
65 </div> 65 </div>
66 <div id="images"> 66 <div id="images">
67 <img id="img-normal" src="../../../../fast/images/resources/dice.png" /> 67 <img id="img-normal" src="../images/resources/dice.png" />
68 <img id="img-changing" src="../../../../fast/images/resources/dice.png" /> 68 <img id="img-changing" src="../images/resources/dice.png" />
69 <img id="img-fail" /> 69 <img id="img-fail" />
70 <img id="img-not-there" src="not-existing.png" /> 70 <img id="img-not-there" src="not-existing.png" />
71 </div> 71 </div>
72 <div id="more-images"> 72 <div id="more-images">
73 </div> 73 </div>
74 <div id="console"></div> 74 <div id="console"></div>
75 <script src="../../../../fast/js/resources/js-test-post.js"></script> 75 <script src="../js/resources/js-test-post.js"></script>
76 </body> 76 </body>
77 </html> 77 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698