Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / file / input-file-value.html
blobad68a8b3e1d7a8933aa3911fc2a0f9db7081890d
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 <script src="resources/file-drag-common.js"></script>
6 </head>
7 <body>
8 <input type="file" name="file" id="file">
10 <script>
11 description("This tests the value attribute in file input forms");
13 if (window.testRunner) {
14 var file = document.getElementById("file");
15 dragFilesOntoInput(file, ["foo.txt"]);
17 shouldBeEqualToString("file.value", "C:\\fakepath\\foo.txt");
18 shouldBe("file.files.length", "1");
20 shouldThrow("file.value = 'foo'");
21 shouldBeEqualToString("file.value", "C:\\fakepath\\foo.txt");
22 shouldBe("file.files.length", "1");
24 file.value = "";
25 shouldBeEqualToString("file.value", "");
26 shouldBe("file.files.length", "0");
28 </script>
29 </body>
30 </html>