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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/the-output-element/output.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/the-output-element/output.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/the-output-element/output.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/the-output-element/output.html
deleted file mode 100644
index 6ed7c5619659eb8909834af45e74317631fc6565..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/the-output-element/output.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>The output element</title>
-<link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org">
-<link rel=help href="https://html.spec.whatwg.org/multipage/#the-output-element">
-<script src="../../../../../../resources/testharness.js"></script>
-<script src="../../../../../../resources/testharnessreport.js"></script>
-<div id="log"></div>
-<output id=output></output>
-<script>
- var output = document.getElementById("output");
-
- test(function(){
- assert_equals(output.type, "output", "type must return the string 'output'");
- assert_equals(output.textContent, "", "textContent is empty");
- assert_equals(output.value, "", "value should be empty");
- assert_equals(output.defaultValue, "", "defaultValue should be empty");
-
- output.textContent="5";
- assert_equals(output.value, "5", "textContent is set to 5: value is updated");
- assert_equals(output.textContent, "5", "textContent is set to 5");
- assert_equals(output.defaultValue, "5", "textContent is set to 5: defaultValue is updated");
-
- output.defaultValue="10"; // value mode flag is in "default" mode. Setting defaultValue should set textContent as well
- assert_equals(output.value, "10", "defaultValue is set to 10: value is updated");
- assert_equals(output.textContent, "10", "defaultValue is set to 10: textContent is updated");
- assert_equals(output.defaultValue, "10", "defaultValue is set to 10");
-
- output.value="20"; // set the value mode flag to "value": default value remains unchanged
- assert_equals(output.value, "20", "value is set to 20");
- assert_equals(output.textContent, "20", "value is set to 20: textContent is updated");
- assert_equals(output.defaultValue, "10", "value is set to 20: defaultValue remains unchanged");
-
- output.defaultValue="15"; // value mode flag is in "value" mode. textContent remains unchanged when setting defaultValue
- assert_equals(output.value, "20", "defaultValue is set to 15: value remains unchanged");
- assert_equals(output.textContent, "20", "defaultValue is set to 15: textContent remains unchanged");
- assert_equals(output.defaultValue, "15", "defaultValue is set to 15");
- }, "output value and defaultValue");
-</script>

Powered by Google App Engine
This is Rietveld 408576698