Index: LayoutTests/fast/forms/input-value-sanitization.html |
diff --git a/LayoutTests/fast/forms/input-value-sanitization.html b/LayoutTests/fast/forms/input-value-sanitization.html |
index 92e3f533198be135bd014085a6e99ef7be365974..92d59c27ecb32ffc761901e1b1a5c29239aab632 100644 |
--- a/LayoutTests/fast/forms/input-value-sanitization.html |
+++ b/LayoutTests/fast/forms/input-value-sanitization.html |
@@ -55,6 +55,30 @@ shouldBe('document.getSelection().toString()', '" foo bar "'); |
input.value = String.fromCharCode(0xD800); |
shouldBe('input.value', 'String.fromCharCode(0xD800)'); |
+input.value="foo\0bar"; |
tkent
2014/03/11 04:03:06
Please add spaces around '='.
Habib Virji
2014/03/11 11:17:49
Done.
|
+shouldBe('input.value', '"foo\\0bar"'); |
tkent
2014/03/11 04:03:06
Please use shouldBeEqualToString.
Habib Virji
2014/03/11 11:17:49
Done.
|
+ |
+input.value="foo\abar"; |
+shouldBe('input.value', '"foo\\abar"'); |
+ |
+input.value="foo\bbar"; |
+shouldBe('input.value', '"foo\\bbar"'); |
+ |
+input.value="foo\tbar"; |
+shouldBe('input.value', '"foo\\tbar"'); |
+ |
+input.value="foo\vbar"; |
+shouldBe('input.value', '"foo\\vbar"'); |
+ |
+input.value="foo\fbar"; |
+shouldBe('input.value', '"foo\\fbar"'); |
+ |
+input.value="foo\ebar"; |
+shouldBe('input.value', '"foo\\ebar"'); |
+ |
+input.value="foo\^?bar"; |
+shouldBe('input.value', '"foo\\^?bar"'); |
+ |
// FIXME: Add more sanitization tests. |
// https://bugs.webkit.org/show_bug.cgi?id=37024 |