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

Unified Diff: third_party/WebKit/LayoutTests/virtual/print_browser/print_testharness/test_enable_print_browser.html

Issue 2672983003: Implements PrintBrowser mode. (Closed)
Patch Set: Rebase Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/virtual/print_browser/print_testharness/test_enable_print_browser.html
diff --git a/third_party/WebKit/LayoutTests/virtual/print_browser/print_testharness/test_enable_print_browser.html b/third_party/WebKit/LayoutTests/virtual/print_browser/print_testharness/test_enable_print_browser.html
new file mode 100644
index 0000000000000000000000000000000000000000..a25c9c9b874b95568056b564a735d5db5a82b7ca
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/virtual/print_browser/print_testharness/test_enable_print_browser.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+
+<style style="text/css">
+ @media screen
+ {
+ p#bodyText {color: red; font-size: 20px;}
+ }
+ @media print
+ {
+ p#bodyText {color: green; font-size: 40px;}
+ }
+</style>
+
+<body>
+ <p id="bodyText">Test message please ignore.</p>
+</body>
+
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<script>
+test(function () {
+ assert_equals(getComputedStyle(bodyText).fontSize, "40px")
+}, "Checks if we are in print mode");
+</script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698