Delete Notation because we don't use it
[WebKit-https.git] / LayoutTests / http / tests / security / resources / cross-frame-iframe-for-put-test.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <script type="text/javascript">
5         function log(s)
6         {
7             document.getElementById("console").appendChild(document.createTextNode(s + "\n"));
8         }
9
10         function shouldBe(a, b, shouldNotPrintValues)
11         {
12             var evalA, evalB;
13             try {
14                 evalA = eval(a);
15                 evalB = eval(b);
16             } catch(e) {
17                 evalA = e;
18             }
19
20             var message;
21             if (evalA === evalB) {
22                 message = "PASS";
23                 if (!shouldNotPrintValues) {
24                     message += ": " + a + " should be '" + evalB + "' and is.";
25                 } else {
26                     message += ": " + a + " matched the expected value.";
27                 }
28             } else {
29                message = "*** FAIL: " + a + " should be '" + evalB + "' but instead is " + evalA + ". ***";
30             }
31
32             message = String(message).replace(/\n/g, "");
33             if (window.testRunner) {
34                 alert(message);
35             } else {
36                 log(message);
37             }
38         }
39     </script>
40 </head>
41 <body>
42     <p>This text is in an iframe.</p>
43     <pre id="console"></pre>
44     <script>
45         // Constructors
46         var AttrOld = window.Attr;
47         var CDATASectionOld = window.CDATASection;
48         var CharacterDataOld = window.CharacterData;
49         var CommentOld = window.Comment;
50         var CSSPrimitiveValueOld = window.CSSPrimitiveValue;
51         var CSSRuleOld = window.CSSRule;
52         var CSSStyleDeclarationOld = window.CSSStyleDeclaration;
53         var CSSValueOld = window.CSSValue;
54         var DocumentFragmentOld = window.DocumentFragment;
55         var DocumentOld = window.Document;
56         var DocumentTypeOld = window.DocumentType;
57         var DOMExceptionOld = window.DOMException;
58         var DOMImplementationOld = window.DOMImplementation;
59         var DOMParserOld = window.DOMParser;
60         var ElementOld = window.Element;
61         var EntityOld = window.Entity;
62         var EntityReferenceOld = window.EntityReference;
63         var EvalErrorOld = window.EvalError;
64         var EventOld = window.Event;
65         var HTMLAnchorElementOld = window.HTMLAnchorElement;
66         var HTMLAppletElementOld = window.HTMLAppletElement;
67         var HTMLAreaElementOld = window.HTMLAreaElement;
68         var HTMLBaseElementOld = window.HTMLBaseElement;
69         var HTMLBaseFontElementOld = window.HTMLBaseFontElement;
70         var HTMLBodyElementOld = window.HTMLBodyElement;
71         var HTMLBRElementOld = window.HTMLBRElement;
72         var HTMLButtonElementOld = window.HTMLButtonElement;
73         var HTMLCanvasElementOld = window.HTMLCanvasElement;
74         var HTMLDirectoryElementOld = window.HTMLDirectoryElement;
75         var HTMLDivElementOld = window.HTMLDivElement;
76         var HTMLDListElementOld = window.HTMLDListElement;
77         var HTMLDocumentOld = window.HTMLDocument;
78         var HTMLElementOld = window.HTMLElement;
79         var HTMLFieldSetElementOld = window.HTMLFieldSetElement;
80         var HTMLFontElementOld = window.HTMLFontElement;
81         var HTMLFormElementOld = window.HTMLFormElement;
82         var HTMLFrameElementOld = window.HTMLFrameElement;
83         var HTMLFrameSetElementOld = window.HTMLFrameSetElement;
84         var HTMLHeadElementOld = window.HTMLHeadElement;
85         var HTMLHeadingElementOld = window.HTMLHeadingElement;
86         var HTMLHRElementOld = window.HTMLHRElement;
87         var HTMLHtmlElementOld = window.HTMLHtmlElement;
88         var HTMLIFrameElementOld = window.HTMLIFrameElement;
89         var HTMLImageElementOld = window.HTMLImageElement;
90         var HTMLInputElementOld = window.HTMLInputElement;
91         var HTMLIsIndexElementOld = window.HTMLIsIndexElement;
92         var HTMLLabelElementOld = window.HTMLLabelElement;
93         var HTMLLegendElementOld = window.HTMLLegendElement;
94         var HTMLLIElementOld = window.HTMLLIElement;
95         var HTMLLinkElementOld = window.HTMLLinkElement;
96         var HTMLMapElementOld = window.HTMLMapElement;
97         var HTMLMarqueeElementOld = window.HTMLMarqueeElement;
98         var HTMLMenuElementOld = window.HTMLMenuElement;
99         var HTMLMetaElementOld = window.HTMLMetaElement;
100         var HTMLModElementOld = window.HTMLModElement;
101         var HTMLOListElementOld = window.HTMLOListElement;
102         var HTMLOptGroupElementOld = window.HTMLOptGroupElement;
103         var HTMLOptionElementOld = window.HTMLOptionElement;
104         var HTMLParagraphElementOld = window.HTMLParagraphElement;
105         var HTMLParamElementOld = window.HTMLParamElement;
106         var HTMLPreElementOld = window.HTMLPreElement;
107         var HTMLQuoteElementOld = window.HTMLQuoteElement;
108         var HTMLScriptElementOld = window.HTMLScriptElement;
109         var HTMLSelectElementOld = window.HTMLSelectElement;
110         var HTMLStyleElementOld = window.HTMLStyleElement;
111         var HTMLTableCaptionElementOld = window.HTMLTableCaptionElement;
112         var HTMLTableCellElementOld = window.HTMLTableCellElement;
113         var HTMLTableColElementOld = window.HTMLTableColElement;
114         var HTMLTableElementOld = window.HTMLTableElement;
115         var HTMLTableRowElementOld = window.HTMLTableRowElement;
116         var HTMLTableSectionElementOld = window.HTMLTableSectionElement;
117         var HTMLTextAreaElementOld = window.HTMLTextAreaElement;
118         var HTMLTitleElementOld = window.HTMLTitleElement;
119         var HTMLUListElementOld = window.HTMLUListElement;
120         var MutationEventOld = window.MutationEvent;
121         var NodeFilterOld = window.NodeFilter;
122         var NodeOld = window.Node;
123         var ProcessingInstructionOld = window.ProcessingInstruction;
124         var RangeErrorOld = window.RangeError;
125         var RangeExceptionOld = window.RangeException;
126         var RangeOld = window.Range;
127         var ReferenceErrorOld = window.ReferenceError;
128         var SyntaxErrorOld = window.SyntaxError;
129         var TextOld = window.Text;
130         var TypeErrorOld = window.TypeError;
131         var URIErrorOld = window.URIError;
132         var XMLDocumentOld = window.XMLDocument;
133         var XMLSerializerOld = window.XMLSerializer;
134         var XPathEvaluatorOld = window.XPathEvaluator;
135         var XPathResultOld = window.XPathResult;
136     
137         // FIXME: find a way to test these Constructors
138         // var ImageOld = window.Image;
139         // var OptionOld = window.Option;
140         // var XMLHttpRequestOld = window.XMLHttpRequest;
141         // var XSLTProcessorOld = window.XSLTProcessor;
142     
143         // Attributes
144         var clientInformationOld = window.clientInformation;
145         var closedOld = window.closed;
146         var consoleOld = window.console;
147         var cryptoOld = window.crypto;
148         var defaultStatusOld = window.defaultStatus;
149         var defaultstatusOld = window.defaultstatus;
150         var devicePixelRatioOld = window.devicePixelRatio;
151         var documentOld = window.document;
152         var embedsOld = window.embeds;
153         var eventOld = window.event;
154         var frameElementOld = window.frameElement;
155         var framesOld = window.frames;
156         var historyOld = window.history;
157         var imagesOld = window.images;
158         var innerHeightOld = 150; // This needs to be set explicitily as it is not set a the time of calling
159         var innerWidthOld = 300; // This needs to be set explicitily as it is not set a the time of calling
160         var lengthOld = window.length;
161         var locationbarOld = window.locationbar;
162         var menubarOld = window.menubar;
163         var nameOld = window.name;
164         var navigatorOld = window.navigator;
165         var offscreenBufferingOld = window.offscreenBuffering;
166         var onabortOld = window.onabort;
167         var onbeforeunloadOld = window.onbeforeunload;
168         var onblurOld = window.onblur;
169         var onchangeOld = window.onchange;
170         var onclickOld = window.onclick;
171         var ondblclickOld = window.ondblclick;
172         var onerrorOld = window.onerror;
173         var onfocusOld = window.onfocus;
174         var onkeydownOld = window.onkeydown;
175         var onkeypressOld = window.onkeypress;
176         var onkeyupOld = window.onkeyup;
177         var onloadOld = window.onload;
178         var onmousedownOld = window.onmousedown;
179         var onmousemoveOld = window.onmousemove;
180         var onmouseoutOld = window.onmouseout;
181         var onmouseoverOld = window.onmouseover;
182         var onmouseupOld = window.onmouseup;
183         var onmousewheelOld = window.onmousewheel;
184         var onresetOld = window.onreset;
185         var onresizeOld = window.onresize;
186         var onscrollOld = window.onscroll;
187         var onsearchOld = window.onsearch;
188         var onselectOld = window.onselect;
189         var onsubmitOld = window.onsubmit;
190         var onunloadOld = window.onunload;
191         var openerOld = window.opener;
192         var outerHeightOld = window.outerHeight;
193         var outerWidthOld = window.outerWidth;
194         var pageXOffsetOld = window.pageXOffset;
195         var pageYOffsetOld = window.pageYOffset;
196         var personalbarOld = window.personalbar;
197         var pluginsOld = window.plugins;
198         var screenLeftOld = window.screenLeft;
199         var screenOld = window.screen;
200         var screenTopOld = window.screenTop;
201         var screenXOld = window.screenX;
202         var screenYOld = window.screenY;
203         var scrollbarsOld = window.scrollbars;
204         var scrollXOld = window.scrollX;
205         var scrollYOld = window.scrollY;
206         var selfOld = window.self;
207         var statusbarOld = window.statusbar;
208         var statusOld = window.status;
209         var toolbarOld = window.toolbar;
210         var windowOld = window.window;
211         var parentOld = window.parent;
212         var topOld = window.top;
213
214         // Functions
215         var addEventListenerOld = window.addEventListener;
216         var alertOld = window.alert;
217         var atobOld = window.atob;
218         var btoaOld = window.btoa;
219         var captureEventsOld = window.captureEvents;
220         var clearIntervalOld = window.clearInterval;
221         var clearTimeoutOld = window.clearTimeout;
222         var confirmOld = window.confirm;
223         var evalOld = window.eval;
224         var findOld = window.find;
225         var getComputedStyleOld = window.getComputedStyle;
226         var getMatchedCSSRulesOld = window.getMatchedCSSRules;
227         var getSelectionOld = window.getSelection;
228         var moveByOld = window.moveBy;
229         var moveToOld = window.moveTo;
230         var openOld = window.open;
231         var printOld = window.print;
232         var promptOld = window.prompt;
233         var releaseEventsOld = window.releaseEvents;
234         var removeEventListenerOld = window.removeEventListener;
235         var resizeByOld = window.resizeBy;
236         var resizeToOld = window.resizeTo;
237         var scrollByOld = window.scrollBy;
238         var scrollOld = window.scroll;
239         var scrollToOld = window.scrollTo;
240         var setIntervalOld = window.setInterval;
241         var setTimeoutOld = window.setTimeout;
242         var showModalDialogOld = window.showModalDialog;
243         var stopOld = window.stop;
244
245         setTimeout(function() {
246             // Constructors
247             shouldBe("window.Attr", "AttrOld");
248             shouldBe("window.CDATASection", "CDATASectionOld");
249             shouldBe("window.CharacterData", "CharacterDataOld");
250             shouldBe("window.Comment", "CommentOld");
251             shouldBe("window.CSSPrimitiveValue", "CSSPrimitiveValueOld");
252             shouldBe("window.CSSRule", "CSSRuleOld");
253             shouldBe("window.CSSStyleDeclaration", "CSSStyleDeclarationOld");
254             shouldBe("window.CSSValue", "CSSValueOld");
255             shouldBe("window.Document", "DocumentOld");
256             shouldBe("window.DocumentFragment", "DocumentFragmentOld");
257             shouldBe("window.DocumentType", "DocumentTypeOld");
258             shouldBe("window.DOMException", "DOMExceptionOld");
259             shouldBe("window.DOMImplementation", "DOMImplementationOld");
260             shouldBe("window.DOMParser", "DOMParserOld");
261             shouldBe("window.Element", "ElementOld");
262             shouldBe("window.Entity", "EntityOld");
263             shouldBe("window.EntityReference", "EntityReferenceOld");
264             shouldBe("window.EvalError", "EvalErrorOld");
265             shouldBe("window.Event", "EventOld");
266             shouldBe("window.HTMLAnchorElement", "HTMLAnchorElementOld");
267             shouldBe("window.HTMLAppletElement", "HTMLAppletElementOld");
268             shouldBe("window.HTMLAreaElement", "HTMLAreaElementOld");
269             shouldBe("window.HTMLBaseElement", "HTMLBaseElementOld");
270             shouldBe("window.HTMLBaseFontElement", "HTMLBaseFontElementOld");
271             shouldBe("window.HTMLBodyElement", "HTMLBodyElementOld");
272             shouldBe("window.HTMLBRElement", "HTMLBRElementOld");
273             shouldBe("window.HTMLButtonElement", "HTMLButtonElementOld");
274             shouldBe("window.HTMLCanvasElement", "HTMLCanvasElementOld");
275             shouldBe("window.HTMLDirectoryElement", "HTMLDirectoryElementOld");
276             shouldBe("window.HTMLDivElement", "HTMLDivElementOld");
277             shouldBe("window.HTMLDListElement", "HTMLDListElementOld");
278             shouldBe("window.HTMLDocument", "HTMLDocumentOld");
279             shouldBe("window.HTMLElement", "HTMLElementOld");
280             shouldBe("window.HTMLFieldSetElement", "HTMLFieldSetElementOld");
281             shouldBe("window.HTMLFontElement", "HTMLFontElementOld");
282             shouldBe("window.HTMLFormElement", "HTMLFormElementOld");
283             shouldBe("window.HTMLFrameElement", "HTMLFrameElementOld");
284             shouldBe("window.HTMLFrameSetElement", "HTMLFrameSetElementOld");
285             shouldBe("window.HTMLHeadElement", "HTMLHeadElementOld");
286             shouldBe("window.HTMLHeadingElement", "HTMLHeadingElementOld");
287             shouldBe("window.HTMLHRElement", "HTMLHRElementOld");
288             shouldBe("window.HTMLHtmlElement", "HTMLHtmlElementOld");
289             shouldBe("window.HTMLIFrameElement", "HTMLIFrameElementOld");
290             shouldBe("window.HTMLImageElement", "HTMLImageElementOld");
291             shouldBe("window.HTMLInputElement", "HTMLInputElementOld");
292             shouldBe("window.HTMLIsIndexElement", "HTMLIsIndexElementOld");
293             shouldBe("window.HTMLLabelElement", "HTMLLabelElementOld");
294             shouldBe("window.HTMLLegendElement", "HTMLLegendElementOld");
295             shouldBe("window.HTMLLIElement", "HTMLLIElementOld");
296             shouldBe("window.HTMLLinkElement", "HTMLLinkElementOld");
297             shouldBe("window.HTMLMapElement", "HTMLMapElementOld");
298             shouldBe("window.HTMLMarqueeElement", "HTMLMarqueeElementOld");
299             shouldBe("window.HTMLMenuElement", "HTMLMenuElementOld");
300             shouldBe("window.HTMLMetaElement", "HTMLMetaElementOld");
301             shouldBe("window.HTMLModElement", "HTMLModElementOld");
302             shouldBe("window.HTMLOListElement", "HTMLOListElementOld");
303             shouldBe("window.HTMLOptGroupElement", "HTMLOptGroupElementOld");
304             shouldBe("window.HTMLOptionElement", "HTMLOptionElementOld");
305             shouldBe("window.HTMLParagraphElement", "HTMLParagraphElementOld");
306             shouldBe("window.HTMLParamElement", "HTMLParamElementOld");
307             shouldBe("window.HTMLPreElement", "HTMLPreElementOld");
308             shouldBe("window.HTMLQuoteElement", "HTMLQuoteElementOld");
309             shouldBe("window.HTMLScriptElement", "HTMLScriptElementOld");
310             shouldBe("window.HTMLSelectElement", "HTMLSelectElementOld");
311             shouldBe("window.HTMLStyleElement", "HTMLStyleElementOld");
312             shouldBe("window.HTMLTableCaptionElement", "HTMLTableCaptionElementOld");
313             shouldBe("window.HTMLTableCellElement", "HTMLTableCellElementOld");
314             shouldBe("window.HTMLTableColElement", "HTMLTableColElementOld");
315             shouldBe("window.HTMLTableElement", "HTMLTableElementOld");
316             shouldBe("window.HTMLTableRowElement", "HTMLTableRowElementOld");
317             shouldBe("window.HTMLTableSectionElement", "HTMLTableSectionElementOld");
318             shouldBe("window.HTMLTextAreaElement", "HTMLTextAreaElementOld");
319             shouldBe("window.HTMLTitleElement", "HTMLTitleElementOld");
320             shouldBe("window.HTMLUListElement", "HTMLUListElementOld");
321             shouldBe("window.MutationEvent", "MutationEventOld");
322             shouldBe("window.Node", "NodeOld");
323             shouldBe("window.NodeFilter", "NodeFilterOld");
324             shouldBe("window.ProcessingInstruction", "ProcessingInstructionOld");
325             shouldBe("window.Range", "RangeOld");
326             shouldBe("window.RangeError", "RangeErrorOld");
327             shouldBe("window.RangeException", "RangeExceptionOld");
328             shouldBe("window.ReferenceError", "ReferenceErrorOld");
329             shouldBe("window.SyntaxError", "SyntaxErrorOld");
330             shouldBe("window.Text", "TextOld");
331             shouldBe("window.TypeError", "TypeErrorOld");
332             shouldBe("window.URIError", "URIErrorOld");
333             shouldBe("window.XMLDocument", "XMLDocumentOld");
334             shouldBe("window.XMLSerializer", "XMLSerializerOld");
335             shouldBe("window.XPathEvaluator", "XPathEvaluatorOld");
336             shouldBe("window.XPathResult", "XPathResultOld");
337
338             // FIXME: find a way to test these Constructors
339             // shouldBe("window.Image", "ImageOld");
340             // shouldBe("window.Option", "OptionOld");
341             // shouldBe("window.XMLHttpRequest", "XMLHttpRequestOld");
342             // shouldBe("window.XSLTProcessor", "XSLTProcessorOld");
343
344             // Attributes
345             shouldBe("window.clientInformation", "clientInformationOld");
346             shouldBe("window.closed", "closedOld");
347             shouldBe("window.console", "consoleOld");
348             shouldBe("window.crypto", "cryptoOld");
349             shouldBe("window.defaultStatus", "defaultStatusOld");
350             shouldBe("window.defaultstatus", "defaultstatusOld");
351             shouldBe("window.devicePixelRatio", "devicePixelRatioOld");
352             shouldBe("window.document", "documentOld");
353             shouldBe("window.embeds", "embedsOld");
354             shouldBe("window.event", "eventOld");
355             shouldBe("window.frameElement", "frameElementOld");
356             shouldBe("window.frames", "framesOld");
357             shouldBe("window.history", "historyOld");
358             shouldBe("window.images", "imagesOld");
359             shouldBe("window.innerHeight", "innerHeightOld");
360             shouldBe("window.innerWidth", "innerWidthOld");
361             shouldBe("window.length", "lengthOld");
362             shouldBe("window.locationbar", "locationbarOld");
363             shouldBe("window.menubar", "menubarOld");
364             shouldBe("window.name", "nameOld");
365             shouldBe("window.navigator", "navigatorOld");
366             shouldBe("window.offscreenBuffering", "offscreenBufferingOld");
367             shouldBe("window.onabort", "onabortOld");
368             shouldBe("window.onbeforeunload", "onbeforeunloadOld");
369             shouldBe("window.onblur", "onblurOld");
370             shouldBe("window.onchange", "onchangeOld");
371             shouldBe("window.onclick", "onclickOld");
372             shouldBe("window.ondblclick", "ondblclickOld");
373             shouldBe("window.onerror", "onerrorOld");
374             shouldBe("window.onfocus", "onfocusOld");
375             shouldBe("window.onkeydown", "onkeydownOld");
376             shouldBe("window.onkeypress", "onkeypressOld");
377             shouldBe("window.onkeyup", "onkeyupOld");
378             shouldBe("window.onload", "onloadOld");
379             shouldBe("window.onmousedown", "onmousedownOld");
380             shouldBe("window.onmousemove", "onmousemoveOld");
381             shouldBe("window.onmouseout", "onmouseoutOld");
382             shouldBe("window.onmouseover", "onmouseoverOld");
383             shouldBe("window.onmouseup", "onmouseupOld");
384             shouldBe("window.onmousewheel", "onmousewheelOld");
385             shouldBe("window.onreset", "onresetOld");
386             shouldBe("window.onresize", "onresizeOld");
387             shouldBe("window.onscroll", "onscrollOld");
388             shouldBe("window.onsearch", "onsearchOld");
389             shouldBe("window.onselect", "onselectOld");
390             shouldBe("window.onsubmit", "onsubmitOld");
391             shouldBe("window.onunload", "onunloadOld");
392             shouldBe("window.opener", "openerOld");
393             shouldBe("window.outerHeight", "outerHeightOld", true); // The result can be dependent on previous tests.
394             shouldBe("window.outerWidth", "outerWidthOld", true); // The result can be dependent on previous tests.
395             shouldBe("window.pageXOffset", "pageXOffsetOld");
396             shouldBe("window.pageYOffset", "pageYOffsetOld");
397             shouldBe("window.personalbar", "personalbarOld");
398             shouldBe("window.plugins", "pluginsOld");
399             shouldBe("window.screen", "screenOld");
400             shouldBe("window.screenLeft", "screenLeftOld");
401             shouldBe("window.screenTop", "screenTopOld", true); // The result is based on the physical screen size, so don't display the values.
402             shouldBe("window.screenX", "screenXOld");
403             shouldBe("window.screenY", "screenYOld", true); // The result is based on the physical screen size, so don't display the values.
404             shouldBe("window.scrollbars", "scrollbarsOld");
405             shouldBe("window.scrollX", "scrollXOld");
406             shouldBe("window.scrollY", "scrollYOld");
407             shouldBe("window.self", "selfOld");
408             shouldBe("window.status", "statusOld");
409             shouldBe("window.statusbar", "statusbarOld");
410             shouldBe("window.toolbar", "toolbarOld");
411             shouldBe("window.window", "windowOld");
412
413             // Using shouldBe for parent and top causes extraneous warnings due to cross-orgin toString'ing.
414             if (window.parent === parentOld) {
415                 alert("PASS: window.parent should be parentOld and is.");
416             } else {
417                 alert("*** FAIL: window.parent should be parentOld but instead is " + window.parent + ". ***");
418             }
419
420             if (window.top === topOld) {
421                 alert("PASS: window.top should be topOld and is.");
422             } else {
423                 alert("*** FAIL: window.top should be topOld but instead is " + window.top + ". ***");
424             }
425
426             // Functions
427             shouldBe("window.addEventListener", "addEventListenerOld");
428             shouldBe("window.alert", "alertOld");
429             shouldBe("window.atob", "atobOld");
430             shouldBe("window.btoa", "btoaOld");
431             shouldBe("window.captureEvents", "captureEventsOld");
432             shouldBe("window.clearInterval", "clearIntervalOld");
433             shouldBe("window.clearTimeout", "clearTimeoutOld");
434             shouldBe("window.confirm", "confirmOld");
435             shouldBe("window.eval", "evalOld");
436             shouldBe("window.find", "findOld");
437             shouldBe("window.getComputedStyle", "getComputedStyleOld");
438             shouldBe("window.getMatchedCSSRules", "getMatchedCSSRulesOld");
439             shouldBe("window.getSelection", "getSelectionOld");
440             shouldBe("window.moveBy", "moveByOld");
441             shouldBe("window.moveTo", "moveToOld");
442             shouldBe("window.open", "openOld");
443             shouldBe("window.print", "printOld");
444             shouldBe("window.prompt", "promptOld");
445             shouldBe("window.releaseEvents", "releaseEventsOld");
446             shouldBe("window.removeEventListener", "removeEventListenerOld");
447             shouldBe("window.resizeBy", "resizeByOld");
448             shouldBe("window.resizeTo", "resizeToOld");
449             shouldBe("window.scroll", "scrollOld");
450             shouldBe("window.scrollBy", "scrollByOld");
451             shouldBe("window.scrollTo", "scrollToOld");
452             shouldBe("window.setInterval", "setIntervalOld");
453             shouldBe("window.setTimeout", "setTimeoutOld");
454
455             // showModalDialog is not implemented on all platforms for DumpRenderTree.  So don't display the values.
456             shouldBe("window.showModalDialog", "showModalDialogOld", true);
457             shouldBe("window.stop", "stopOld");
458         }, 0);
459     </script>
460 </body>
461 </html>