Index: third_party/WebKit/LayoutTests/fast/text/whitespace/nowrap-previous-trailing-space.html |
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace/nowrap-previous-trailing-space.html b/third_party/WebKit/LayoutTests/fast/text/whitespace/nowrap-previous-trailing-space.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b4e7c79c0e80446aef51c7fa3c382e8e09dacfd6 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace/nowrap-previous-trailing-space.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<style> |
+#container { |
+ width: 40px; |
+ border: 1px solid; |
+} |
+.text { |
+ white-space: nowrap; |
+} |
+</style> |
+<p>crbug.com/597193: Trailing space occurring before a no-wrap span should not fool it into thinking it can break. There should be three separate lines with the word 'Text' below.</p> |
+<p id="container">Text <span id="s1" class="text"></span> Text</p> |
+<script> |
+var s1 = document.getElementById('s1'); |
+s1.appendChild(document.createTextNode("T")); |
+s1.appendChild(document.createTextNode("e")); |
+s1.appendChild(document.createTextNode("x")); |
+s1.appendChild(document.createTextNode("t")); |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+</script> |