+2006-10-18 Geoffrey Garen <ggaren@apple.com>
+
+ Test for some window properties that WebCore previously didn't enumerate.
+
+ * fast/js/window-properties2-expected.txt: Added.
+ * fast/js/window-properties2.html: Added.
+
2006-10-18 Geoffrey Garen <ggaren@apple.com>
Reviewed by Beth.
window.document.location : object (Location)
window.document.location.toString : function
window.document.location.assign : function
+window.document.location.reload : function
+window.document.location.replace : function
window.document.location.host : string
window.document.location.pathname : string
window.document.location.port : string
window.document.location.href : string
window.document.location.search : string
-window.document.location.reload : function
window.document.location.hash : string
window.document.location.hostname : string
window.document.location.protocol : string
-window.document.location.replace : function
window.document.cookie : string
window.document.plugins : function
window.document.forms : function
window.document.defaultView.history : object (History)
window.document.defaultView.history.back : function
window.document.defaultView.history.forward : function
-window.document.defaultView.history.length : number
window.document.defaultView.history.go : function
+window.document.defaultView.history.length : number
window.document.defaultView.prompt : function
window.document.defaultView.top : object (DOMWindow)
window.document.defaultView.top *** children skipped, already printed above under 'window.document.defaultView'
function shouldSkipChildren(fullPropertyName, propertyValue) {
if (propertyValue == logDiv
- || fullPropertyName == 'window.document.body.lastChild'
- || fullPropertyName == 'window.history.length')
+ || fullPropertyName == 'window.document.body.lastChild')
return true;
}
--- /dev/null
+This test prints out the values of a few global objects that WebCore used to lack.
+
+
+
+===== window.location [object]: file:///Users/ggaren/Labyrinth/OpenSource/LayoutTests/fast/js/window-properties2.html=====
+toString: function
+assign: function
+host: string
+pathname: string
+port: string
+href: string
+search: string
+reload: function
+hash: string
+hostname: string
+protocol: string
+replace: function
+
+
+===== window.getSelection() [object]: =====
+setPosition: function
+modify: function
+setBaseAndExtent: function
+empty: function
+getRangeAt: function
+toString: function
+baseOffset: number
+collapseToEnd: function
+type: string
+focusNode: object
+focusOffset: number
+extentOffset: number
+anchorNode: object
+extentNode: object
+baseNode: object
+collapseToStart: function
+anchorOffset: number
+isCollapsed: boolean
+collapse: function
+
+
+===== window.history [object]: [object History]=====
+back: function
+forward: function
+length: number
+go: function
+
+
+===== window.locationbar [object]: [object BarInfo]=====
+visible: boolean
+
+
+===== window.menubar [object]: [object BarInfo]=====
+visible: boolean
+
+
+===== window.personalbar [object]: [object BarInfo]=====
+visible: boolean
+
+
+===== window.statusbar [object]: [object BarInfo]=====
+visible: boolean
+
+
+===== window.toolbar [object]: [object BarInfo]=====
+visible: boolean
+
--- /dev/null
+<p>This test prints out the values of a few global objects that WebCore used to lack.</p>
+<hr>
+
+<pre id="pre"></pre>
+
+<script>
+if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+function log(s)
+{
+ document.getElementById('pre').appendChild(document.createTextNode(s));
+}
+
+function logObject(objectGetter)
+{
+ var o = eval(objectGetter);
+ log("\n\n===== " + objectGetter + " [" + typeof(o) + "]: " + o + "=====\n");
+ for (var p in o) {
+ log(p + ": " + typeof o[p] + "\n");
+ }
+}
+
+logObject('window.location');
+logObject('window.getSelection()');
+logObject('window.history');
+logObject('window.locationbar');
+logObject('window.menubar');
+logObject('window.personalbar');
+logObject('window.statusbar');
+logObject('window.toolbar');
+</script>
\ No newline at end of file