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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/interactive-elements/the-details-element/details.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/interactive-elements/the-details-element/details.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/interactive-elements/the-details-element/details.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/interactive-elements/the-details-element/details.html
deleted file mode 100644
index 2e9b9d0124c636d5dabd0f7a9c2f986b456b8389..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/interactive-elements/the-details-element/details.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!doctype html>
-<html>
- <head>
- <title>HTML details element API</title>
- <style>#one, #two { visibility: hidden; }</style>
- <script src="../../../../../../resources/testharness.js"></script>
- <script src="../../../../../../resources/testharnessreport.js"></script>
- </head>
- <body>
- <div id="log"></div>
-
- <!-- Used in parsing tests -->
- <div id='one'><details></details><details></details></div>
- <div id='two'><p><details></details></div>
-
- <script type="text/javascript">
-
-function makeDetails () {
- return document.createElement('details');
-}
-
-
-// <details>
-test(function () {
- var times = document.getElementById('one').getElementsByTagName('details');
- assert_equals( times.length, 2 );
-}, 'HTML parsing should locate 2 details elements in this document');
-
-test(function () {
- assert_equals( document.getElementById('two').getElementsByTagName('p')[0].innerHTML, '' );
-}, 'HTML parsing should close an unclosed <p> before <details>');
-
-test(function () {
- assert_true( !!window.HTMLDetailsElement );
-}, 'HTMLDetailsElement should be exposed for prototyping');
-
-test(function () {
- assert_true( makeDetails() instanceof window.HTMLDetailsElement);
-}, 'a dynamically created details element should be instanceof HTMLDetailsElement');
-
-test(function () {
- assert_true( document.getElementById('one').getElementsByTagName('details')[0] instanceof window.HTMLDetailsElement);
-}, 'a details element from the parser should be instanceof HTMLDetailsElement');
- </script>
-
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698