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

Side by Side Diff: LayoutTests/printing/custom-page-size-style.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 id="head_element"> 3 <head id="head_element">
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 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script> 9 <script>
10 description("This tests page custom size style."); 10 description("This tests page custom size style.");
11 function appendStyle(styleString) 11 function appendStyle(styleString)
12 { 12 {
13 var styleElement = document.createElement("style"); 13 var styleElement = document.createElement("style");
14 styleElement.innerHTML = styleString; 14 styleElement.innerHTML = styleString;
(...skipping 12 matching lines...) Expand all
27 appendStyle("@page {size:auto;}"); 27 appendStyle("@page {size:auto;}");
28 shouldBe("testRunner.hasCustomPageSizeStyle(0)", "false"); 28 shouldBe("testRunner.hasCustomPageSizeStyle(0)", "false");
29 29
30 debug(""); 30 debug("");
31 } else { 31 } else {
32 testFailed("This test can be run only with window.testRunner"); 32 testFailed("This test can be run only with window.testRunner");
33 } 33 }
34 </script> 34 </script>
35 </body> 35 </body>
36 </html> 36 </html>
OLDNEW
« no previous file with comments | « LayoutTests/printing/allowed-page-breaks.html ('k') | LayoutTests/printing/no-content-empty-pages.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698