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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/select-no-name.html

Issue 1509853008: Move select/option/optgroup-related tests in fast/forms to fast/forms/select. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: third_party/WebKit/LayoutTests/fast/forms/select-no-name.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/select-no-name.html b/third_party/WebKit/LayoutTests/fast/forms/select-no-name.html
deleted file mode 100644
index 4c3f8c02589e1a0cdcf89ab5a030d4098b105220..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/select-no-name.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<html>
-<head>
- <title>Submit</title>
- <style type="text/css">
- h2 {
- display: none;
-
- }
- #pass {
- background: #0f0;
- }
- #fail {
- background: Red;
- }
- </style>
-</head>
-<body onload="test()">
-<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=20184">bug 20184</a>:
-SELECT with no name generates invalid query string.</p>
-<form action="">
-<select><option disabled>invalid</option></select>
-<select><option disabled></option></select>
-
-<input type='hidden' id="done" name="done" value="true"/>
-<input type="hidden" id="id" name="id" value="123"/>
-</form>
-<h2 id="pass">PASS</h2>
-<h2 id="fail">FAIL</h2>
-<script type="text/javascript">
-if (window.testRunner) {
- testRunner.waitUntilDone();
- testRunner.dumpAsText();
-}
-
-function test() {
- var id = document.getElementById('id');
-
- // Options with "disabled" or "invalid" value
- // are are failures here.
- if(location.search && /invalid|disabled/.test(location.search)) {
- document.getElementById("fail").style.display = "inline-block";
- } else {
- if(location.search) {
- var m = location.search.match(/id=(\d+)/);
- if(m && m[1]) {
- id.value = m[1];
- } else {
- id.disabled = true;
- }
- } else id.disabled = true;
-
- if(!/done=true/.test(location.search)) {
- document.forms[0].submit();
- return;
- }
- document.getElementById("pass").style.display = "inline-block";
- }
- if (window.testRunner)
- testRunner.notifyDone();
-};
-</script>
-<p>
-<a href="javascript:history.back();">reload</a>
-</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698