| Index: LayoutTests/webexposed/global-constructors-listing.html
|
| diff --git a/LayoutTests/webexposed/global-constructors-listing.html b/LayoutTests/webexposed/global-constructors-listing.html
|
| index 19543d726da6794deb501b985e1d73e131863d1b..53a1ba59eeb7142fd9817e4c4d750e4f8dea7006 100644
|
| --- a/LayoutTests/webexposed/global-constructors-listing.html
|
| +++ b/LayoutTests/webexposed/global-constructors-listing.html
|
| @@ -1,27 +1,12 @@
|
| <html>
|
| -<body>
|
| +<head>
|
| <script src="../fast/js/resources/js-test-pre.js"></script>
|
| +</head>
|
| +<body>
|
| <script>
|
| description("This test documents the Constructor properties on the global window object.");
|
| -
|
| -function isConstructor(propertyName) {
|
| - var descriptor = Object.getOwnPropertyDescriptor(window, propertyName);
|
| - if (descriptor.value == undefined || descriptor.value.prototype == undefined)
|
| - return false;
|
| - return descriptor.writable && !descriptor.enumerable && descriptor.configurable;
|
| -}
|
| -
|
| -var constructorNames = [];
|
| -var propertyNames = Object.getOwnPropertyNames(window);
|
| -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]);
|
| </script>
|
| +<script src="resources/global-context-constructors-listing.js"></script>
|
| <script src="../fast/js/resources/js-test-post.js"></script>
|
| </body>
|
| </html>
|
|
|