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> |