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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/script-tests/constructors-cached.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/script-tests/constructors-cached.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/script-tests/constructors-cached.js b/third_party/WebKit/LayoutTests/fast/dom/script-tests/constructors-cached.js
deleted file mode 100644
index a42e60d6800a898e1a3015ebe876e3ff3d85b470..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/script-tests/constructors-cached.js
+++ /dev/null
@@ -1,18 +0,0 @@
-description("This test ensures that objects with security restrictions are cached correctly");
-
-var ctors = ["Image", "Option", "XMLHttpRequest", "Audio"];
-
-for (var i = 0; i < ctors.length; i++) {
- var ctor = ctors[i];
- try {
- // Test retrieving the object twice results in the same object
- shouldBe(ctor, ctor);
-
- // Be paranoid -- make sure that setting a property results in that property
- // stays
- this[ctor].testProperty = "property set successfully";
- shouldBe(ctor + ".testProperty", '"property set successfully"');
- } catch (e) {
- testFailed("Testing " + ctor + " threw " + e);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698