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

Side by Side 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, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 description("This test ensures that objects with security restrictions are cache d correctly");
2
3 var ctors = ["Image", "Option", "XMLHttpRequest", "Audio"];
4
5 for (var i = 0; i < ctors.length; i++) {
6 var ctor = ctors[i];
7 try {
8 // Test retrieving the object twice results in the same object
9 shouldBe(ctor, ctor);
10
11 // Be paranoid -- make sure that setting a property results in that prop erty
12 // stays
13 this[ctor].testProperty = "property set successfully";
14 shouldBe(ctor + ".testProperty", '"property set successfully"');
15 } catch (e) {
16 testFailed("Testing " + ctor + " threw " + e);
17 }
18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698