@@ -174,53 +174,6 @@ function testParseStackFrameInV8() {
174
174
'/local/dir/path' ) ) ;
175
175
}
176
176
177
- function testParseStackFrameInOpera ( ) {
178
- assertStackFrame ( 'empty frame' , '@' , webdriver . stacktrace . ANONYMOUS_FRAME_ ) ;
179
-
180
- assertStackFrame ( 'javascript path only' ,
181
- '@javascript:console.log(Error().stack):1' ,
182
- new webdriver . stacktrace . Frame ( '' , '' , '' ,
183
- 'javascript:console.log(Error().stack):1' ) ) ;
184
-
185
- assertStackFrame ( 'path only' ,
186
- '@file:///foo:42' ,
187
- new webdriver . stacktrace . Frame ( '' , '' , '' , 'file:///foo:42' ) ) ;
188
-
189
- // (function go() { throw Error() })()
190
- // var c = go; c()
191
- assertStackFrame ( 'name and empty path' ,
192
- 'go([arguments not available])@' ,
193
- new webdriver . stacktrace . Frame ( '' , 'go' , '' , '' ) ) ;
194
-
195
- assertStackFrame ( 'name and path' ,
196
- 'go([arguments not available])@file:///foo:42' ,
197
- new webdriver . stacktrace . Frame ( '' , 'go' , '' , 'file:///foo:42' ) ) ;
198
-
199
- // (function() { throw Error() })()
200
- assertStackFrame ( 'anonymous function' ,
201
- '<anonymous function>([arguments not available])@file:///foo:42' ,
202
- new webdriver . stacktrace . Frame ( '' , '' , '' , 'file:///foo:42' ) ) ;
203
-
204
- // var b = {foo: function() { throw Error() }}
205
- assertStackFrame ( 'object literal function' ,
206
- '<anonymous function: foo>()@file:///foo:42' ,
207
- new webdriver . stacktrace . Frame ( '' , 'foo' , '' , 'file:///foo:42' ) ) ;
208
-
209
- // var c = {}; c.foo = function() { throw Error() }
210
- assertStackFrame ( 'named object literal function' ,
211
- '<anonymous function: c.foo>()@file:///foo:42' ,
212
- new webdriver . stacktrace . Frame ( 'c' , 'foo' , '' , 'file:///foo:42' ) ) ;
213
-
214
- assertStackFrame ( 'prototype function' ,
215
- '<anonymous function: Foo.prototype.bar>()@' ,
216
- new webdriver . stacktrace . Frame ( 'Foo.prototype' , 'bar' , '' , '' ) ) ;
217
-
218
- assertStackFrame ( 'namespaced prototype function' ,
219
- '<anonymous function: goog.Foo.prototype.bar>()@' ,
220
- new webdriver . stacktrace . Frame (
221
- 'goog.Foo.prototype' , 'bar' , '' , '' ) ) ;
222
- }
223
-
224
177
function testParseClosureCanonicalStackFrame ( ) {
225
178
assertStackFrame ( 'unknown frame' , '> (unknown)' ,
226
179
webdriver . stacktrace . ANONYMOUS_FRAME_ ) ;
0 commit comments