[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] gnash/testsuite/actionscript.all Date.as
From: |
strk |
Subject: |
Re: [Gnash-commit] gnash/testsuite/actionscript.all Date.as |
Date: |
Sat, 3 Mar 2007 16:52:30 +0100 |
On Sat, Mar 03, 2007 at 11:29:46AM +0000, Martin Guy wrote:
> CVSROOT: /sources/gnash
> Module name: gnash
> Changes by: Martin Guy <martinwguy> 07/03/03 11:29:46
>
> Modified files:
> testsuite/actionscript.all: Date.as
>
> Log message:
> Turn "date" temp varilable in to "d" to stop it overriding class name
> Date
> in case-insensitive Gnash versions.
Note that the test still fails with the proprietary player.
For SWF 6..8 a single failure:
FAILED: d.getHours() <= 1 [./Date.as:209]
For SWF5 many many more, so much to overflow the visual window
so I can't paste all. Here's an excerpt:
FAILED: d.getDate != undefined [./Date.as:35]
FAILED: d.getDay != undefined [./Date.as:36]
FAILED: d.getFullYear != undefined [./Date.as:37]
FAILED: d.getHours != undefined [./Date.as:38]
FAILED: d.getMilliseconds != undefined [./Date.as:39]
FAILED: d.getMinutes != undefined [./Date.as:40]
FAILED: d.getMonth != undefined [./Date.as:41]
FAILED: d.getSeconds != undefined [./Date.as:42]
FAILED: d.getTime != undefined [./Date.as:43]
FAILED: d.getTimezoneOffset != undefined [./Date.as:44]
FAILED: d.getUTCDate != undefined [./Date.as:45]
FAILED: d.getUTCDay != undefined [./Date.as:46]
FAILED: d.getUTCFullYear != undefined [./Date.as:47]
FAILED: d.getUTCHours != undefined [./Date.as:48]
FAILED: d.getUTCMilliseconds != undefined [./Date.as:49]
FAILED: d.getUTCMinutes != undefined [./Date.as:50]
FAILED: d.getUTCMonth != undefined [./Date.as:51]
FAILED: d.getUTCSeconds != undefined [./Date.as:52]
FAILED: d.getYear != undefined [./Date.as:53]
FAILED: d.setDate != undefined [./Date.as:54]
FAILED: d.setFullYear != undefined [./Date.as:55]
FAILED: d.setHours != undefined [./Date.as:56]
FAILED: d.setMilliseconds != undefined [./Date.as:57]
FAILED: d.setMinutes != undefined [./Date.as:58]
FAILED: d.setMonth != undefined [./Date.as:59]
FAILED: d.setSeconds != undefined [./Date.as:60]
Maybe test if Date is instantiable at all with SWF5?
Something like:
check_equals(typeof(Date), 'function');
var d = Date;
check_equals(typeof(d), 'object');
check(d instanceOf Date);
check_equals(d.__proto__, Date.prototype);
--strk;