4 <script src=
"../../../resources/js-test.js"></script>
5 <script src=
"resources/file-drag-common.js"></script>
8 <input type=
"file" name=
"file" id=
"file">
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");
25 shouldBeEqualToString("file.value", "");
26 shouldBe("file.files.length", "0");