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

Unified Diff: LayoutTests/webexposed/global-constructors-listing.html

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/webexposed/global-constructors-listing-worker.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/webexposed/global-constructors-listing-worker.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698