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..07cbb0a4255548845d2d5c1522da80ec5ca770a8 |
--- /dev/null |
+++ b/LayoutTests/fast/text-autosizing/print-autosizing.html |
@@ -0,0 +1,31 @@ |
+<!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> |
+</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> |
+ |
+<script> |
+ if (window.testRunner) { |
+ testRunner.waitUntilDone(); |
+ testRunner.setPrinting(); |
+ requestAnimationFrame(function() { |
+ testRunner.notifyDone(); |
+ }); |
+ } |
+</script> |
+</body> |
+</html> |