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

Side by Side Diff: LayoutTests/printing/page-rule-specificity.html

Issue 1197733009: Prepare LayoutTests for lazy loading testRunner and internals. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « LayoutTests/http/tests/serviceworker/chromium/stashed-ports-after-terminate.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Page rule specificity</title> 4 <title>Page rule specificity</title>
5 <script src="../resources/testharness.js"></script> 5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script> 6 <script src="../resources/testharnessreport.js"></script>
7 <style> 7 <style>
8 @page :first { 8 @page :first {
9 margin-left: 100px; 9 margin-left: 100px;
10 } 10 }
11 @page { 11 @page {
12 margin-left: 50px; 12 margin-left: 50px;
13 } 13 }
14 </style> 14 </style>
15 </head> 15 </head>
16 <body> 16 <body>
17 <p id="log"></p> 17 <p id="log"></p>
18 <script> 18 <script>
19 test(function(){ 19 test(function(){
20 assert_own_property(window, "testRunner"); 20 assert_true(window.testRunner instanceof Object);
21 assert_own_property(window, "internals"); 21 assert_true(window.internals instanceof Object);
22 }, "Test needs testRunner framework."); 22 }, "Test needs testRunner framework.");
23 23
24 test(function(){ 24 test(function(){
25 assert_equals(internals.pageProperty("margin-left", 0), "100", "Left margin."); 25 assert_equals(internals.pageProperty("margin-left", 0), "100", "Left margin.");
26 }, ":first specificity beats order of appearance."); 26 }, ":first specificity beats order of appearance.");
27 27
28 </script> 28 </script>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/serviceworker/chromium/stashed-ports-after-terminate.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698