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

Side by Side Diff: LayoutTests/svg/as-image/svg-canvas-svg-with-image-with-link-tainted.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 if (window.testRunner) { 8 if (window.testRunner) {
9 testRunner.dumpAsText(); 9 testRunner.dumpAsText();
10 testRunner.waitUntilDone(); 10 testRunner.waitUntilDone();
11 } 11 }
12 12
13 var svg = new Image(); 13 var svg = new Image();
14 svg.src = "resources/svg-with-image-with-link.svg"; 14 svg.src = "resources/svg-with-image-with-link.svg";
15 15
16 svg.onload = function() { 16 svg.onload = function() {
17 var canvas = document.createElement("canvas"); 17 var canvas = document.createElement("canvas");
18 window.ctx = canvas.getContext("2d"); 18 window.ctx = canvas.getContext("2d");
19 19
20 ctx.getImageData(0, 0, 1, 1); 20 ctx.getImageData(0, 0, 1, 1);
21 21
22 ctx.drawImage(svg, 0, 0); 22 ctx.drawImage(svg, 0, 0);
23 23
24 shouldThrow("window.ctx.getImageData(0, 0, 1, 1)"); 24 shouldThrow("window.ctx.getImageData(0, 0, 1, 1)");
25 25
26 if (window.testRunner) 26 if (window.testRunner)
27 testRunner.notifyDone(); 27 testRunner.notifyDone();
28 }; 28 };
29 </script> 29 </script>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698