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

Side by Side Diff: LayoutTests/fast/css/border-image-null-image-crash.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 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <script src="../js/resources/js-test-pre.js"></script> 5 <script src="../../resources/js-test.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 9
10 description("Tests that shorthand border-image with a null image doesn't crash." ); 10 description("Tests that shorthand border-image with a null image doesn't crash." );
11 11
12 var testContainer = document.createElement("div"); 12 var testContainer = document.createElement("div");
13 document.body.appendChild(testContainer); 13 document.body.appendChild(testContainer);
14 14
15 testContainer.innerHTML = '<div id="test">hello</div>'; 15 testContainer.innerHTML = '<div id="test">hello</div>';
16 16
17 e = document.getElementById('test'); 17 e = document.getElementById('test');
18 computedStyle = window.getComputedStyle(e, null); 18 computedStyle = window.getComputedStyle(e, null);
19 e.style.borderImage = "10% fill"; 19 e.style.borderImage = "10% fill";
20 20
21 shouldBe("computedStyle.getPropertyValue('border-image')", "'none'"); 21 shouldBe("computedStyle.getPropertyValue('border-image')", "'none'");
22 22
23 document.body.removeChild(testContainer); 23 document.body.removeChild(testContainer);
24 </script> 24 </script>
25 </body> 25 </body>
26 </html> 26 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/background-currentcolor.html ('k') | LayoutTests/fast/css/border-image-style-length.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698