[Laszlo-dev] anyone know where these "LzSprite.prototype.CSSDimension: coerced NaN to 0" warnings come from?
Henry Minsky
henry.minsky at gmail.com
Thu Apr 16 09:10:45 PDT 2009
What's the name of the debugger function to call generate/print a
backtrace?
On Thu, Apr 16, 2009 at 10:07 AM, P T Withington <ptw at pobox.com> wrote:
> This warning is created when you try to set a dimension of a view to NaN,
> so somewhere the test must be doing a computation that is going off the
> rails. We used to silently ignore this, but it broke some runtimes. I guess
> the only way to debug this is to run the test by hand. Maybe you have to
> change CSSDimension to print out a backtrace (and run the test with
> backtrace on)?
>
>
> On 2009-04-15, at 17:47EDT, Henry Minsky wrote:
>
> When I run "ant lztest", I see these warnings. Note that the lztest is
>> running the app in the "fake DOM" that
>> we use in rhino, so maybe that harness needs updating?
>>
>>
>> [exec] Entering runlztest.sh with LPS_HOME=/Users/hqm/openlaszlo/trunk5
>> tags=smoketest
>> [exec] covers-tags: class smoketest
>> [exec] testing test/lztest/lztest-static-attrs.lzx...........
>> [exec] Compiling: test/lztest/lztest-static-attrs.lzx to
>> test/lztest/lztest-static-attrs.js
>> [exec] <a title="#1">WARNING: <a
>> title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a>
>>
>> [exec] <a title="#2">WARNING: <a
>> title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a>
>>
>> [exec] skipping test/lztest/lztest-textstyle.lzx, does not match tags
>> smoketest
>> [exec] covers-tags: lzview smoketest
>> [exec] testing test/lztest/lztest-align.lzx...........
>> [exec] Compiling: test/lztest/lztest-align.lzx to
>> test/lztest/lztest-align.js
>> [exec] <a title="#1">WARNING: <a
>> title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a>
>>
>> [exec] <a title="#2">WARNING: <a
>> title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a>
>>
>> [exec] covers-tags: class smoketest
>> [exec] testing test/lztest/lztest-class-impl.lzx...........
>> [exec] Compiling: test/lztest/lztest-class-impl.lzx to
>> test/lztest/lztest-class-impl.js
>> [exec] <a title="#1">WARNING: <a
>> title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a>
>>
>> [exec] <a title="#2">WARNING: <a
>> title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a>
>>
>> [exec] covers-tags : lzevent lzdelegate smoketest
>> [exec] testing test/lztest/lztest-events.lzx...........
>> [exec] Compiling: test/lztest/lztest-events.lzx to
>> test/lztest/lztest-events.js
>> [exec] <a title="#1">WARNING: <a
>> title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a>
>>
>> [exec] <a title="#2">WARNING: <a
>> title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a>
>>
>> [exec] covers-tags : lznode lzcanvas smoketest
>> [exec] testing test/lztest/lztest-ids.lzx...........
>> [exec] Compiling: test/lztest/lztest-ids.lzx to
>> test/lztest/lztest-ids.js
>> [exec] <a title="#1">WARNING: <a
>> title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a>
>>
>> [exec] <a title="#2">WARNING: <a
>> title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a>
>>
>> [exec] skipping test/lztest/lztest-lzbrowser.lzx, does not match tags
>> smoketest
>> [exec] skipping test/lztest/lztest-lzdataelement.lzx, does not match
>> tags smoketest
>> [exec] covers-tags : lznode smoketest
>> [exec] testing test/lztest/lztest-node-initsequence.lzx...........
>> [exec] Compiling: test/lztest/lztest-node-initsequence.lzx to
>> test/lztest/lztest-node-initsequence.js
>> [exec] <a title="#1">WARNING: <a
>> title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a>
>>
>> [exec] <a title="#2">WARNING: <a
>> title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a>
>>
>> [exec] covers-tags : lznode smoketest
>> [exec] testing test/lztest/lztest-node-options.lzx...........
>> [exec] Compiling: test/lztest/lztest-node-options.lzx to
>> test/lztest/lztest-node-options.js
>> [exec] <a title="#1">WARNING: <a
>> title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a>
>>
>> [exec] <a title="#2">WARNING: <a
>> title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a>
>>
>> [exec] covers-tags : lznode smoketest
>> [exec] testing test/lztest/lztest-node.lzx...........
>> [exec] Compiling: test/lztest/lztest-node.lzx to
>> test/lztest/lztest-node.js
>> [exec] <a title="#1">WARNING: <a
>> title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a>
>>
>> [exec] <a title="#2">WARNING: <a
>> title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a>
>>
>>
>> --
>> Henry Minsky
>> Software Architect
>> hminsky at laszlosystems.com
>>
>
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20090416/e3dbd012/attachment.html
More information about the Laszlo-dev
mailing list