| Index: LayoutTests/webexposed/resources/global-context-constructors-listing.js
|
| diff --git a/LayoutTests/webexposed/resources/global-context-constructors-listing.js b/LayoutTests/webexposed/resources/global-context-constructors-listing.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..193fa9698d7393702b8f6878d64d523985375c7e
|
| --- /dev/null
|
| +++ b/LayoutTests/webexposed/resources/global-context-constructors-listing.js
|
| @@ -0,0 +1,24 @@
|
| +if (this.importScripts)
|
| + importScripts('../../fast/js/resources/js-test-pre.js');
|
| +
|
| +function isConstructor(propertyName) {
|
| + var descriptor = Object.getOwnPropertyDescriptor(this, propertyName);
|
| + if (descriptor.value == undefined || descriptor.value.prototype == undefined)
|
| + return false;
|
| + return descriptor.writable && !descriptor.enumerable && descriptor.configurable;
|
| +}
|
| +
|
| +var constructorNames = [];
|
| +var propertyNames = Object.getOwnPropertyNames(this);
|
| +for (var i = 0; i < propertyNames.length; i++) {
|
| + if (isConstructor(propertyNames[i]))
|
| + constructorNames[constructorNames.length] = propertyNames[i];
|
| +}
|
| +
|
| +
|
| +constructorNames.sort();
|
| +for (var i = 0; i < constructorNames.length; i++)
|
| + debug(constructorNames[i]);
|
| +
|
| +if (isWorker())
|
| + finishJSTest();
|
|
|