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

Side by Side Diff: LayoutTests/platform/chromium/printing/custom-page-size-style.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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head id="head_element">
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <script>
10 description("This tests page custom size style.");
11 function appendStyle(styleString)
12 {
13 var styleElement = document.createElement("style");
14 styleElement.innerHTML = styleString;
15 document.getElementById("head_element").appendChild(styleElement);
16 }
17
18 if (window.testRunner) {
19 testRunner.dumpAsText();
20
21 // Page size style tests.
22 debug("Test page size: 10in 10in. Page has custom page size style");
23 appendStyle("@page {size:10in 10in;}");
24 shouldBe("testRunner.hasCustomPageSizeStyle(0)", "true");
25
26 debug("Test page size: auto. Page does not have any custom page size sty le");
27 appendStyle("@page {size:auto;}");
28 shouldBe("testRunner.hasCustomPageSizeStyle(0)", "false");
29
30 debug("");
31 } else {
32 testFailed("This test can be run only with window.testRunner");
33 }
34 </script>
35 <script src="../../../fast/js/resources/js-test-post.js"></script>
36 </body>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698