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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/misc/image-blocked-src-no-change.html

Issue 2395313002: Revert of Make ResourceFetcher return Resources with LoadError instead of nullptrs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 2 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/ecmascript"> 3 <script type="text/ecmascript">
4 function changeSrc() 4 function changeSrc()
5 { 5 {
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 8
9 var image = document.getElementById('image'); 9 var image = document.getElementById('image');
10 10
11 if (image.naturalHeight || image.naturalWidth) { 11 if (image.height || image.width) {
12 console.innerHTML = "FAILED"; 12 console.innerHTML = "FAILED";
13 return; 13 return;
14 } 14 }
15 15
16 // We reset the image src to the same url to check that it was 16 // We reset the image src to the same url to check that it was
17 image.src = "file:///tmp/LayoutTests/http/tests/security/resources/c ompass.jpg"; 17 image.src = "file:///tmp/LayoutTests/http/tests/security/resources/c ompass.jpg";
18 } 18 }
19 </script> 19 </script>
20 </head> 20 </head>
21 <body onload="changeSrc()"> 21 <body onload="changeSrc()">
22 <p> Test case for <a href="https://bugs.webkit.org/show_bug.cgi?id=17897 "> bug 17897 </a>: Not Rendering Images Imported from XHTML Document </p> 22 <p> Test case for <a href="https://bugs.webkit.org/show_bug.cgi?id=17897 "> bug 17897 </a>: Not Rendering Images Imported from XHTML Document </p>
23 <p> This test checks that setting an image url should lead to load even if the image was in error and the url is not changed. </p> 23 <p> This test checks that setting an image url should lead to load even if the image was in error and the url is not changed. </p>
24 <p> For this test to pass, you should see 2 messages in the console </p> 24 <p> For this test to pass, you should see 2 messages in the console </p>
25 <p id='console'> </p> 25 <p id='console'> </p>
26 <!-- This image should be blocked (see security/local-image-from-remote. html) --> 26 <!-- This image should be blocked (see security/local-image-from-remote. html) -->
27 <img id='image' src="file:///tmp/LayoutTests/http/tests/security/resourc es/compass.jpg"/> 27 <img id='image' src="file:///tmp/LayoutTests/http/tests/security/resourc es/compass.jpg"/>
28 </body> 28 </body>
29 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698