| Index: LayoutTests/fast/forms/url-with-line-break-and-whitespace.html
|
| diff --git a/LayoutTests/fast/forms/url-with-line-break-and-whitespace.html b/LayoutTests/fast/forms/url-with-line-break-and-whitespace.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8ef3ce4d2c29094dadfbee6fd63730d85dc6e767
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/forms/url-with-line-break-and-whitespace.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<input type="url" id="input1" value=" homepage " />
|
| +<input type="url" id="input2" value="home
page" />
|
| +<script>
|
| +test(function()
|
| +{
|
| + var input = document.getElementById("input1");
|
| + assert_equals(input.value, "homepage");
|
| + input.value = " home page ";
|
| + assert_equals(input.value, "home page");
|
| + input.value = "home\u000Apage";
|
| + assert_equals(input.value, "homepage");
|
| + input.value = "home\u000Dpage";
|
| + assert_equals(input.value, "homepage");
|
| + input.value = "home\u000D\u000Apage";
|
| + assert_equals(input.value, "homepage");
|
| + input = document.getElementById("input2");
|
| + assert_equals(input.value, "homepage");
|
| +}, "Input type url with line break and leading-trailing whitespace should be stripped");
|
| +</script>
|
|
|