Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: LayoutTests/inspector-protocol/dom/setFileInputFiles.html

Issue 40513003: Delete/move the remaining stale tests in TestExpectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete plugins/reentrant-update-widget-positions.html as well Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector-protocol/dom/setFileInputFiles.html
diff --git a/LayoutTests/inspector-protocol/dom/setFileInputFiles.html b/LayoutTests/inspector-protocol/dom/setFileInputFiles.html
deleted file mode 100644
index a7ac0464951ed349dfef84514143f3bb07551160..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector-protocol/dom/setFileInputFiles.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/protocol-test.js"></script>
-<script>
-
-function onLoad()
-{
- document.querySelector("input").addEventListener("change", onChange);
-
- function onChange(event)
- {
- var files = event.target.files;
- log("File count: " + files.length);
- for (var i = 0; i < files.length; i++) {
- log("Name: " + files[i].name);
- }
- }
-
- runTest();
-}
-
-function test()
-{
- function abortOnError(message)
- {
- if (message.error) {
- InspectorTest.log(message.error.message);
- InspectorTest.completeTest();
- }
- }
-
- InspectorTest.sendCommand("DOM.getDocument", {}, onGotDocument);
-
- function onGotDocument(message)
- {
- abortOnError(message);
- var node = message.result.root;
- InspectorTest.sendCommand("DOM.querySelectorAll", { "nodeId": node.nodeId, "selector": "input" }, onQuerySelectorAll);
- }
-
- function onQuerySelectorAll(message)
- {
- abortOnError(message);
- var ids = message.result.nodeIds;
- InspectorTest.sendCommand("DOM.setFileInputFiles", { "nodeId": ids[0], "files": ["file1", "file2"] }, onSetFiles);
- InspectorTest.sendCommand("DOM.setFileInputFiles", { "nodeId": ids[1], "files": ["file1", "file2"] }, onBadSetFiles);
- }
-
- function onSetFiles(message)
- {
- if (message.error) {
- InspectorTest.log("Received error: " + message.error.message);
- }
- }
-
- function onBadSetFiles(message)
- {
- InspectorTest.log("Received error: " + message.error.message);
- InspectorTest.completeTest();
- }
-}
-
-</script>
-</head>
-<body onload="onLoad()">
-<input type="file"></input>
-<input type="text"></input>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698