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

Side by Side Diff: LayoutTests/fast/dom/resources/wrapper-identity-base.js

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 // We use a static list of window properties to avoid breaking when new properti es are added. 1 // We use a static list of window properties to avoid breaking when new properti es are added.
2 var staticWindowProperties = [ 2 var staticWindowProperties = [
3 'CSSPrimitiveValue', 3 'CSSPrimitiveValue',
4 'CSSRule', 4 'CSSRule',
5 'CSSStyleDeclaration', 5 'CSSStyleDeclaration',
6 'CSSValue', 6 'CSSValue',
7 'CSSCharsetRule', 7 'CSSCharsetRule',
8 'CSSImportRule', 8 'CSSImportRule',
9 'CSSMediaRule', 9 'CSSMediaRule',
10 'CSSFontFaceRule', 10 'CSSFontFaceRule',
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 'resizeBy', 151 'resizeBy',
152 'resizeTo', 152 'resizeTo',
153 'screen', 153 'screen',
154 'scroll', 154 'scroll',
155 'scrollBy', 155 'scrollBy',
156 'scrollTo', 156 'scrollTo',
157 'scrollbars', 157 'scrollbars',
158 'self', 158 'self',
159 'setInterval', 159 'setInterval',
160 'setTimeout', 160 'setTimeout',
161 'showModalDialog',
162 'status', 161 'status',
163 'statusbar', 162 'statusbar',
164 'stop', 163 'stop',
165 'test', 164 'test',
166 'toolbar', 165 'toolbar',
167 'top', 166 'top',
168 'window' 167 'window'
169 ]; 168 ];
170 169
171 170
172 function isEqualJS(a, b) 171 function isEqualJS(a, b)
173 { 172 {
174 return a === b; 173 return a === b;
175 } 174 }
176 175
177 function isEqualObjC(a, b) 176 function isEqualObjC(a, b)
178 { 177 {
179 return Boolean(objCController.identityIsEqual(a, b)); 178 return Boolean(objCController.identityIsEqual(a, b));
180 } 179 }
181 180
182 function testJS(s) 181 function testJS(s)
183 { 182 {
184 shouldBeTrue("var object = " + s + "; isEqualJS(object, object);"); 183 shouldBeTrue("var object = " + s + "; isEqualJS(object, object);");
185 } 184 }
186 185
187 function testObjC(s) 186 function testObjC(s)
188 { 187 {
189 shouldBeTrue("var object = " + s + "; isEqualObjC(object, object);"); 188 shouldBeTrue("var object = " + s + "; isEqualObjC(object, object);");
190 } 189 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698