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

Side by Side Diff: LayoutTests/fast/dom/Window/window-lookup-precedence.html

Issue 174073007: Remove deprecated window.showModalDialog() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../resources/js-test.js"></script> 3 <script src="../../../resources/js-test.js"></script>
4 <script type="text/javascript" src="resources/window-properties.js"></script> 4 <script type="text/javascript" src="resources/window-properties.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 8
9 <br> 9 <br>
10 <iframe src="about:blank"></iframe> 10 <iframe src="about:blank"></iframe>
(...skipping 19 matching lines...) Expand all
30 if ((name.toLowerCase() == "location" || typeof original == "number") 30 if ((name.toLowerCase() == "location" || typeof original == "number")
31 && win[name] == original) 31 && win[name] == original)
32 testPassed("win['" + name + "'] matched original"); 32 testPassed("win['" + name + "'] matched original");
33 else 33 else
34 shouldEvaluateTo("win['" + name + "']", original); 34 shouldEvaluateTo("win['" + name + "']", original);
35 } 35 }
36 36
37 function check(prop) { 37 function check(prop) {
38 var name = prop[0]; 38 var name = prop[0];
39 var original = win[name]; 39 var original = win[name];
40 // showModalDialog is not currently implemented in DumpRenderTree for all pl atforms.
41 if (name == "showModalDialog")
42 return;
43 if (name != "location") { // Avoid navigating the subframe. 40 if (name != "location") { // Avoid navigating the subframe.
44 // Check subframe precedence. 41 // Check subframe precedence.
45 try { 42 try {
46 subframe[name] = name; 43 subframe[name] = name;
47 } catch (e) { 44 } catch (e) {
48 debug("Unable to set subframe[" + name + "]: " + e); 45 debug("Unable to set subframe[" + name + "]: " + e);
49 } 46 }
50 } 47 }
51 checkValue(name, original); 48 checkValue(name, original);
52 49
53 // Check prototype precedence. 50 // Check prototype precedence.
54 myInput.setAttribute("id", name); 51 myInput.setAttribute("id", name);
55 checkValue(name, original); 52 checkValue(name, original);
56 } 53 }
57 54
58 var originalWindowOnError = window.onerror; 55 var originalWindowOnError = window.onerror;
59 window.onerror = null; 56 window.onerror = null;
60 57
61 for (var i = 0; i < propertyInfo.length; ++i) { 58 for (var i = 0; i < propertyInfo.length; ++i) {
62 check(propertyInfo[i]); 59 check(propertyInfo[i]);
63 } 60 }
64 61
65 window.onerror = originalWindowOnError ; 62 window.onerror = originalWindowOnError ;
66 63
67 </script> 64 </script>
68 </body> 65 </body>
69 </html> 66 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698