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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/StyleSheet/script-tests/css-medialist-item.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 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/fast/dom/StyleSheet/script-tests/css-medialist-item.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/script-tests/css-medialist-item.js b/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/script-tests/css-medialist-item.js
deleted file mode 100644
index 59450625a5d6225d57b26205ea7efcf8191d0b57..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/script-tests/css-medialist-item.js
+++ /dev/null
@@ -1,14 +0,0 @@
-description("This tests indexing outside the range of the media list object.");
-
-var styleElement = document.createElement('style');
-styleElement.setAttribute('media', 'screen, print');
-document.documentElement.appendChild(styleElement)
-var mediaList = document.styleSheets[document.styleSheets.length - 1].media;
-
-shouldEvaluateTo('mediaList.length', 2);
-shouldBeEqualToString('mediaList[0]', 'screen');
-shouldBeEqualToString('mediaList[1]', 'print');
-shouldBeUndefined('mediaList[2]');
-shouldBeUndefined('mediaList[-1]')
-
-document.documentElement.removeChild(styleElement);

Powered by Google App Engine
This is Rietveld 408576698