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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formAction_document_address.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_document_address.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formAction_document_address.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formAction_document_address.html
deleted file mode 100644
index 22fdb92d4781c323fa3b650c01a1945561513ce8..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formAction_document_address.html
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="utf-8">
- <title>HTML Test: formAction_document_address</title>
- <link rel="author" title="Intel" href="http://www.intel.com/">
- <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-fs-formaction">
- <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-document's-address">
- <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-button-element">
- <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-input-element">
- <meta name="assert" content="On getting the formAction IDL attribute, when the content attribute is missing or its value is the empty string, the document's address must be returned instead.">
- <script src="../../../../../../resources/testharness.js"></script>
- <script src="../../../../../../resources/testharnessreport.js"></script>
- </head>
- <body>
- <div id="log"></div>
-
- <div id="missing" style="display:none">
- <button type="submit">Submit</button>
- <input type="submit">
- </div>
-
- <div id="empty_string" style="display:none">
- <button type="submit" formaction="">Submit</button>
- <input type="submit" formaction="">
- </div>
-
- <div id="no_assigned_value" style="display:none">
- <button type="submit" formaction>Submit</button>
- <input type="submit" formaction>
- </div>
-
- <script>
- // formaction content attribute is missing
- test(function() {
- var formAction = document.querySelector('#missing button').formAction;
- var address = document.location.href;
- assert_equals(formAction, address);
- }, "Check if button.formAction is the document's address when formaction content attribute is missing");
-
- test(function() {
- var formAction = document.querySelector('#missing input').formAction;
- var address = document.location.href;
- assert_equals(formAction, address);
- }, "Check if input.formAction is the document's address when formaction content attribute is missing");
-
- // formaction content attribute value is empty string
- test(function() {
- var formAction = document.querySelector('#empty_string button').formAction;
- var address = document.location.href;
- assert_equals(formAction, address);
- }, "Check if button.formAction is the document's address when formaction content attribute value is empty string");
-
- test(function() {
- var formAction = document.querySelector('#empty_string input').formAction;
- var address = document.location.href;
- assert_equals(formAction, address);
- }, "Check if input.formAction is the document's address when formaction content attribute value is empty string");
-
- // formaction content attribute value is not assigned, just for comparison with empty string above
- test(function() {
- var formAction = document.querySelector('#no_assigned_value button').formAction;
- var address = document.location.href;
- assert_equals(formAction, address);
- }, "Check if button.formAction is the document's address when formaction content attribute value is not assigned");
-
- test(function() {
- var formAction = document.querySelector('#no_assigned_value input').formAction;
- var address = document.location.href;
- assert_equals(formAction, address);
- }, "Check if input.formAction is the document's address when formaction content attribute value is not assigned");
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698