OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |