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

Side by Side Diff: LayoutTests/webexposed/resources/global-constructors-attributes-worker.js

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 if (this.importScripts) 1 if (this.importScripts)
2 importScripts('../../fast/js/resources/js-test-pre.js'); 2 importScripts('../../resources/js-test.js');
3 3
4 description("Test to ensure that global constructors in workers environment have the right attributes"); 4 description("Test to ensure that global constructors in workers environment have the right attributes");
5 5
6 function descriptorShouldBe(object, property, expected) { 6 function descriptorShouldBe(object, property, expected) {
7 var test = "Object.getOwnPropertyDescriptor(" + object + ", " + property + " )"; 7 var test = "Object.getOwnPropertyDescriptor(" + object + ", " + property + " )";
8 if ("writable" in expected) { 8 if ("writable" in expected) {
9 shouldBe(test + ".value", "" + expected.value); 9 shouldBe(test + ".value", "" + expected.value);
10 shouldBeFalse(test + ".hasOwnProperty('get')"); 10 shouldBeFalse(test + ".hasOwnProperty('get')");
11 shouldBeFalse(test + ".hasOwnProperty('set')"); 11 shouldBeFalse(test + ".hasOwnProperty('set')");
12 } else { 12 } else {
(...skipping 10 matching lines...) Expand all
23 23
24 descriptorShouldBe("global", "'DataView'", {writable: true, enumerable: false, c onfigurable: true, value:"DataView"}); 24 descriptorShouldBe("global", "'DataView'", {writable: true, enumerable: false, c onfigurable: true, value:"DataView"});
25 descriptorShouldBe("global", "'EventSource'", {writable: true, enumerable: false , configurable: true, value:"EventSource"}); 25 descriptorShouldBe("global", "'EventSource'", {writable: true, enumerable: false , configurable: true, value:"EventSource"});
26 descriptorShouldBe("global", "'FileReaderSync'", {writable: true, enumerable: fa lse, configurable: true, value:"FileReaderSync"}); 26 descriptorShouldBe("global", "'FileReaderSync'", {writable: true, enumerable: fa lse, configurable: true, value:"FileReaderSync"});
27 descriptorShouldBe("global", "'Float64Array'", {writable: true, enumerable: fals e, configurable: true, value:"Float64Array"}); 27 descriptorShouldBe("global", "'Float64Array'", {writable: true, enumerable: fals e, configurable: true, value:"Float64Array"});
28 descriptorShouldBe("global", "'MessageChannel'", {writable: true, enumerable: fa lse, configurable: true, value:"MessageChannel"}); 28 descriptorShouldBe("global", "'MessageChannel'", {writable: true, enumerable: fa lse, configurable: true, value:"MessageChannel"});
29 descriptorShouldBe("global", "'WorkerLocation'", {writable: true, enumerable: fa lse, configurable: true, value:"WorkerLocation"}); 29 descriptorShouldBe("global", "'WorkerLocation'", {writable: true, enumerable: fa lse, configurable: true, value:"WorkerLocation"});
30 descriptorShouldBe("global", "'XMLHttpRequest'", {writable: true, enumerable: fa lse, configurable: true, value:"XMLHttpRequest"}); 30 descriptorShouldBe("global", "'XMLHttpRequest'", {writable: true, enumerable: fa lse, configurable: true, value:"XMLHttpRequest"});
31 31
32 finishJSTest(); 32 finishJSTest();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698