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

Unified Diff: LayoutTests/fast/text-autosizing/print-autosizing.html

Issue 263563006: [FastTextAutosizer] Remove printing checks from enabled() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/text-autosizing/print-autosizing.html
diff --git a/LayoutTests/fast/text-autosizing/print-autosizing.html b/LayoutTests/fast/text-autosizing/print-autosizing.html
new file mode 100644
index 0000000000000000000000000000000000000000..8550ceae77b00b97bb6e0eb7493040304617321a
--- /dev/null
+++ b/LayoutTests/fast/text-autosizing/print-autosizing.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+<head>
+
+<meta name="viewport" content="width=800">
+<style>
+html { font-size: 16px; }
+body { width: 800px; margin: 0; overflow-y: hidden; }
+</style>
+
+<script src="resources/autosizingTest.js"></script>
+<script>
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+
+ onload = function() {
skobes 2014/04/30 18:28:08 I think if you put the <script> at the end below t
pdr. 2014/04/30 18:49:01 Done.
+ if (window.testRunner) {
+ testRunner.setPrinting();
+ window.requestAnimationFrame(function() {
skobes 2014/04/30 18:28:08 (nit) remove unnecessary "window."
pdr. 2014/04/30 18:49:01 Done.
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
+ }
+ }
+</script>
+</head>
+<body>
+
+<div>
+ This text should not be autosized because the document is printing.<br>
+ There is enough text that we should <b>autosize</b> the text initially, but while printing we should not be autosized.<br>
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+</div>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698