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

Side by Side Diff: LayoutTests/webexposed/resources/global-context-constructors-listing.js

Issue 15879005: Add webexposed/ layout test that documents all the global constructors in the Worker context (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Share more code with global-constructors-listing.html Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/webexposed/global-constructors-listing-worker-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 if (this.importScripts)
2 importScripts('../../fast/js/resources/js-test-pre.js');
3
4 function isConstructor(propertyName) {
5 var descriptor = Object.getOwnPropertyDescriptor(this, propertyName);
6 if (descriptor.value == undefined || descriptor.value.prototype == undefined )
7 return false;
8 return descriptor.writable && !descriptor.enumerable && descriptor.configura ble;
9 }
10
11 var constructorNames = [];
12 var propertyNames = Object.getOwnPropertyNames(this);
13 for (var i = 0; i < propertyNames.length; i++) {
14 if (isConstructor(propertyNames[i]))
15 constructorNames[constructorNames.length] = propertyNames[i];
16 }
17
18
19 constructorNames.sort();
20 for (var i = 0; i < constructorNames.length; i++)
21 debug(constructorNames[i]);
22
23 if (isWorker())
24 finishJSTest();
OLDNEW
« no previous file with comments | « LayoutTests/webexposed/global-constructors-listing-worker-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698