Add tests for control characters being rendered visibly
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Sep 2015 01:36:33 +0000 (01:36 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Sep 2015 01:36:33 +0000 (01:36 +0000)
https://bugs.webkit.org/show_bug.cgi?id=149142

Reviewed by Alexey Proskuryakov.

According to [1] and [2], all browsers are migrating to rendering control characters. This patch
adds tests for this behavior. Because we do not implement the behavior yet [3], these tests are
marked as failing.

[1] http://logs.csswg.org/irc.w3.org/css/2015-02-08/#e520447
[2] https://lists.w3.org/Archives/Public/www-style/2015Sep/0076.html
[3] https://bugs.webkit.org/show_bug.cgi?id=149128

* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:
* platform/ios-simulator/TestExpectations:
* platform/mac/TestExpectations:
* fast/text/control-characters/visible-control-characters-1-expected-mismatch.html: Added.
* fast/text/control-characters/visible-control-characters-1.html: Added.
* fast/text/control-characters/visible-control-characters-2-expected-mismatch.html: Added.
* fast/text/control-characters/visible-control-characters-2.html: Added.
* fast/text/control-characters/visible-control-characters-3-expected-mismatch.html: Added.
* fast/text/control-characters/visible-control-characters-3.html: Added.
* fast/text/control-characters/visible-control-characters-2-expected-mismatch.xhtml: Added.
* fast/text/control-characters/visible-control-characters-2.xhtml: Added.
* fast/text/control-characters/visible-control-characters-3-expected-mismatch.xhtml: Added.
* fast/text/control-characters/visible-control-characters-3.xhtml: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189769 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/text/control-characters/visible-control-characters-1-expected-mismatch.html [new file with mode: 0644]
LayoutTests/fast/text/control-characters/visible-control-characters-1.html [new file with mode: 0644]
LayoutTests/fast/text/control-characters/visible-control-characters-2-expected-mismatch.html [new file with mode: 0644]
LayoutTests/fast/text/control-characters/visible-control-characters-2-expected-mismatch.xhtml [new file with mode: 0644]
LayoutTests/fast/text/control-characters/visible-control-characters-2.html [new file with mode: 0644]
LayoutTests/fast/text/control-characters/visible-control-characters-2.xhtml [new file with mode: 0644]
LayoutTests/fast/text/control-characters/visible-control-characters-3-expected-mismatch.html [new file with mode: 0644]
LayoutTests/fast/text/control-characters/visible-control-characters-3-expected-mismatch.xhtml [new file with mode: 0644]
LayoutTests/fast/text/control-characters/visible-control-characters-3.html [new file with mode: 0644]
LayoutTests/fast/text/control-characters/visible-control-characters-3.xhtml [new file with mode: 0644]
LayoutTests/platform/efl/TestExpectations
LayoutTests/platform/gtk/TestExpectations
LayoutTests/platform/ios-simulator/TestExpectations
LayoutTests/platform/mac/TestExpectations

index e1b2621..0e9624a 100644 (file)
@@ -1,5 +1,35 @@
 2015-09-14  Myles C. Maxfield  <mmaxfield@apple.com>
 
+        Add tests for control characters being rendered visibly
+        https://bugs.webkit.org/show_bug.cgi?id=149142
+
+        Reviewed by Alexey Proskuryakov.
+
+        According to [1] and [2], all browsers are migrating to rendering control characters. This patch
+        adds tests for this behavior. Because we do not implement the behavior yet [3], these tests are
+        marked as failing.
+
+        [1] http://logs.csswg.org/irc.w3.org/css/2015-02-08/#e520447
+        [2] https://lists.w3.org/Archives/Public/www-style/2015Sep/0076.html
+        [3] https://bugs.webkit.org/show_bug.cgi?id=149128
+
+        * platform/efl/TestExpectations:
+        * platform/gtk/TestExpectations:
+        * platform/ios-simulator/TestExpectations:
+        * platform/mac/TestExpectations:
+        * fast/text/control-characters/visible-control-characters-1-expected-mismatch.html: Added.
+        * fast/text/control-characters/visible-control-characters-1.html: Added.
+        * fast/text/control-characters/visible-control-characters-2-expected-mismatch.html: Added.
+        * fast/text/control-characters/visible-control-characters-2.html: Added.
+        * fast/text/control-characters/visible-control-characters-3-expected-mismatch.html: Added.
+        * fast/text/control-characters/visible-control-characters-3.html: Added.
+        * fast/text/control-characters/visible-control-characters-2-expected-mismatch.xhtml: Added.
+        * fast/text/control-characters/visible-control-characters-2.xhtml: Added.
+        * fast/text/control-characters/visible-control-characters-3-expected-mismatch.xhtml: Added.
+        * fast/text/control-characters/visible-control-characters-3.xhtml: Added.
+
+2015-09-14  Myles C. Maxfield  <mmaxfield@apple.com>
+
         WebKitTestRunner declarative language setting is broken for iOS
         https://bugs.webkit.org/show_bug.cgi?id=149119
 
diff --git a/LayoutTests/fast/text/control-characters/visible-control-characters-1-expected-mismatch.html b/LayoutTests/fast/text/control-characters/visible-control-characters-1-expected-mismatch.html
new file mode 100644 (file)
index 0000000..69f5b57
--- /dev/null
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+</head>
+<body>
+This test makes sure that control characters are rendered visibly.
+<div>
+foobar
+</div>
+</body>
diff --git a/LayoutTests/fast/text/control-characters/visible-control-characters-1.html b/LayoutTests/fast/text/control-characters/visible-control-characters-1.html
new file mode 100644 (file)
index 0000000..a094193
--- /dev/null
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+</head>
+<body>
+This test makes sure that control characters are rendered visibly.
+<div>
+foo&#x01;bar
+</div>
+</body>
diff --git a/LayoutTests/fast/text/control-characters/visible-control-characters-2-expected-mismatch.html b/LayoutTests/fast/text/control-characters/visible-control-characters-2-expected-mismatch.html
new file mode 100644 (file)
index 0000000..69f5b57
--- /dev/null
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+</head>
+<body>
+This test makes sure that control characters are rendered visibly.
+<div>
+foobar
+</div>
+</body>
diff --git a/LayoutTests/fast/text/control-characters/visible-control-characters-2-expected-mismatch.xhtml b/LayoutTests/fast/text/control-characters/visible-control-characters-2-expected-mismatch.xhtml
new file mode 100644 (file)
index 0000000..031f928
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+</head>
+<body>
+This test makes sure that control characters are rendered visibly.
+<div>
+foobar
+</div>
+</body>
+</html>
diff --git a/LayoutTests/fast/text/control-characters/visible-control-characters-2.html b/LayoutTests/fast/text/control-characters/visible-control-characters-2.html
new file mode 100644 (file)
index 0000000..422ddae
--- /dev/null
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+</head>
+<body>
+This test makes sure that control characters are rendered visibly.
+<div>
+foo&#x7f;bar
+</div>
+</body>
diff --git a/LayoutTests/fast/text/control-characters/visible-control-characters-2.xhtml b/LayoutTests/fast/text/control-characters/visible-control-characters-2.xhtml
new file mode 100644 (file)
index 0000000..4abd637
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+</head>
+<body>
+This test makes sure that control characters are rendered visibly.
+<div>
+foo&#x7f;bar
+</div>
+</body>
+</html>
diff --git a/LayoutTests/fast/text/control-characters/visible-control-characters-3-expected-mismatch.html b/LayoutTests/fast/text/control-characters/visible-control-characters-3-expected-mismatch.html
new file mode 100644 (file)
index 0000000..69f5b57
--- /dev/null
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+</head>
+<body>
+This test makes sure that control characters are rendered visibly.
+<div>
+foobar
+</div>
+</body>
diff --git a/LayoutTests/fast/text/control-characters/visible-control-characters-3-expected-mismatch.xhtml b/LayoutTests/fast/text/control-characters/visible-control-characters-3-expected-mismatch.xhtml
new file mode 100644 (file)
index 0000000..031f928
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+</head>
+<body>
+This test makes sure that control characters are rendered visibly.
+<div>
+foobar
+</div>
+</body>
+</html>
diff --git a/LayoutTests/fast/text/control-characters/visible-control-characters-3.html b/LayoutTests/fast/text/control-characters/visible-control-characters-3.html
new file mode 100644 (file)
index 0000000..f9e0426
--- /dev/null
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+</head>
+<body>
+This test makes sure that control characters are rendered visibly.
+<div>
+foo&#x8f;bar
+</div>
+</body>
diff --git a/LayoutTests/fast/text/control-characters/visible-control-characters-3.xhtml b/LayoutTests/fast/text/control-characters/visible-control-characters-3.xhtml
new file mode 100644 (file)
index 0000000..4a0fc9d
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+</head>
+<body>
+This test makes sure that control characters are rendered visibly.
+<div>
+foo&#x8f;bar
+</div>
+</body>
+</html>
index b1b9c3e..911b596 100644 (file)
@@ -2538,3 +2538,5 @@ fast/text/international/system-language [ Failure ]
 fast/text/international/system-language/system-font-punctuation.html [ Missing ]
 # This test relies on iOS-specific font fallback.
 fast/text/international/system-language/arabic-glyph-cache-fill-combine.html [ ImageOnlyFailure ]
+
+webkit.org/b/149128 fast/text/control-characters [ ImageOnlyFailure ]
index 2250ea7..a09f2a9 100644 (file)
@@ -2614,3 +2614,5 @@ media/controls [ Skip ]
 
 # Mocking the system language is not implemented in GTK.
 fast/text/international/system-language [ Failure ]
+
+webkit.org/b/149128 fast/text/control-characters [ ImageOnlyFailure ]
index 5d7f8f5..115abdf 100644 (file)
@@ -2815,3 +2815,5 @@ http/tests/security/mixedContent/websocket/insecure-websocket-in-main-frame.html
 
 # -webkit-flex off-by-one px
 webkit.org/b/126898 css3/flexbox/image-percent-max-height.html [ ImageOnlyFailure ]
+
+webkit.org/b/149128 fast/text/control-characters [ ImageOnlyFailure ]
index e917484..732cb8a 100644 (file)
@@ -1289,3 +1289,5 @@ webkit.org/b/143258 [ Mavericks ] http/tests/cache/disk-cache/disk-cache-validat
 [ Mavericks ] fast/text/international/system-language [ Pass Failure ImageOnlyFailure ]
 # Han quotes are not different on Mavericks nor Yosemite.
 [ Mavericks Yosemite ] fast/text/international/system-language/han-quotes.html [ ImageOnlyFailure ]
+
+webkit.org/b/149128 fast/text/control-characters [ ImageOnlyFailure ]