FrozenCanuck / Lebowski

The test automation framework for SproutCore applications
http://frozencanuck.wordpress.com
MIT License
78 stars 8 forks source link

Lebowski Framework unable to create specific proxies in IE 7 and IE 8 #3

Closed FrozenCanuck closed 14 years ago

FrozenCanuck commented 14 years ago

When running Lebowski with Internet Explorer versions 7 or 8, the framework is unable to detect the specific type of object being proxied. This is because in IE, the SproutCore framework can't detect what class an object comes from, so an "Anonymous" class name is applied instead. When Lebowski gets the "Anonymous" class name, it just defaults and returns a basic ProxyObject instance. Since this is a problem with SproutCore, not Lebowski, deeper investigation will have to be done in SC to resolve this problem.

FrozenCanuck commented 14 years ago

In IE 7 and 8, the way that global variables are defined and accessed is different from current browsers. In IE, when you create a global variable, such as var Foo = 'bar', you can not access it through a for loop using the browser's global window object (ie. for (key in window) { ... }). To resolve this, you need to add the global variable directly to the window object, such as window.Foo = 'bar'.

FrozenCanuck commented 14 years ago

http://gist.github.com/536260

http://frozencanuck.wordpress.com/2010/08/18/lebowski-framework-failing-in-internet-explorer/

FrozenCanuck commented 14 years ago

This has been fixed in the latest SproutCore stable release v1.4.3