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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formaction.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formaction.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formaction.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formaction.html
deleted file mode 100644
index 6b65433536142f7cf7534784733d43bdb787fbed..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formaction.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<html><head>
- <title>formaction on button element</title>
- <meta content="text/html; charset=UTF-8" http-equiv="content-type">
- <meta content="formaction on button element" name="description">
- <link href="https://html.spec.whatwg.org/multipage/#dom-fs-formaction" rel="help">
-</head>
- <body>
- <script src="../../../../../../resources/testharness.js"></script>
- <script src="../../../../../../resources/testharnessreport.js"></script>
-
- <div id="log"></div>
- <button formaction="http://www.example.com/" style="display: none" type="submit">Submit</button>
- <input formaction="http://www.example.com/" style="display: none" type="submit" value="submit">
- <input style="display: none" type="submit" value="submit">
- <input formaction="" style="display: none" type="submit" value="submit">
-
- <script type="text/javascript">
- function relativeToAbsolute(relativeURL) {
- var a = document.createElement('a');
- a.href = relativeURL;
- return a.href;
- }
- test(function() {assert_equals(document.getElementsByTagName("button")[0].formAction, "http://www.example.com/")}, "formAction on button support");
- test(function() {assert_equals(document.getElementsByTagName("input")[0].formAction, "http://www.example.com/")}, "formAction on input support");
-
- var testElem = document.getElementsByTagName("input")[0];
- testElem.formAction = "http://www.example.com/page2.html";
-
- test(function() {assert_equals(document.getElementsByTagName("input")[0].formAction, "http://www.example.com/page2.html")}, "formaction absolute URL value on input reflects correct value after being updated by the DOM");
- test(function() {assert_equals(document.getElementsByTagName("input")[0].getAttribute("formaction"), "http://www.example.com/page2.html")}, "formAction absolute URL value is correct using getAttribute");
-
- var testElem = document.getElementsByTagName("input")[0];
- testElem.formAction = "../page3.html";
-
- test(function() {assert_equals(document.getElementsByTagName("input")[0].formAction, relativeToAbsolute('../page3.html'))}, "formAction relative URL value on input reflects correct value after being updated by the DOM");
- test(function() {assert_equals(document.getElementsByTagName("input")[0].getAttribute("formaction"), "../page3.html")}, "formAction relative URL value is correct using getAttribute");
-
- test(function() {assert_equals(document.getElementsByTagName("input")[1].formAction, document.URL)}, "On getting, when formaction is missing, the document's address must be returned");
- test(function() {assert_equals(document.getElementsByTagName("input")[2].formAction, document.URL)}, "On getting, when formaction value is the empty string, the document's address must be returned");
- </script>
-</body></html>

Powered by Google App Engine
This is Rietveld 408576698