Closed Bug 696149 Opened 13 years ago Closed 13 years ago

Add copies of Math constants and static methods to Number, for symmetry with float.

Categories

(Tamarin Graveyard :: Library, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED
Q2 12 - Cyril

People

(Reporter: edwsmith, Assigned: lhansen)

References

Details

Attachments

(2 files)

From Float spec 16.1:

Since we have copied the constants and methods from the Math object onto the float class as static methods (with new signatures), we should copy them onto the Number class as well (with unchanged signatures), so that programmers can write similar-looking code for the two types.
Blocks: float/float4
Assignee: nobody → lhansen
Does this bug really block float/float4?
Flags: in-testsuite?
Depends on whether you're asking me ("no") or PARB ("yes")...  You're right, I'll unlink it.
No longer blocks: float/float4
Re-blocking float/float4 because it has been implemented and it's useful to keep track of it.

changeset:   6938:a50f9648c2d7
tag:         tip
user:        Lars T Hansen <lhansen@adobe.com>
date:        Mon Nov 21 10:34:23 2011 +0100
summary:     Copy constants and methods from Math to Number
Blocks: float/float4
Status: NEW → RESOLVED
Closed: 13 years ago
Priority: -- → P3
Resolution: --- → FIXED
Target Milestone: --- → Q2 12 - Cyril
Flags: flashplayer-triage+
Flags: flashplayer-qrb+
Flags: flashplayer-bug-
QA Contact: library → brbaker
changeset:   6943:51541d7832a0
tag:         tip
user:        Brent Baker <brbaker@adobe.com>
date:        Tue Nov 22 06:22:38 2011 -0500
summary:     Bug 696149: add testmedia for new Number static methods and constants.
This patch adds some simple API version testing to make sure that only -api SWF_16+ is able to see the new methods and constants on the Number class.

This patch also contains a change to mimic how 'USES_SWFVERSION' is handled in the acceptance suite so that a single abc can be run multiple times using different -api switch values.
Attachment #576152 - Flags: feedback?(lhansen)
(In reply to Brent Baker from comment #6)
> Created attachment 576152 [details] [diff] [review] [diff] [details] [review]
> API version testing

changeset:   6945:06df61d98f31
tag:         tip
user:        Brent Baker <brbaker@adobe.com>
date:        Tue Nov 22 10:09:00 2011 -0500
summary:     Bug 696149: add some API versioning testing around the new Number constants and static methods.
Status: RESOLVED → VERIFIED
Flags: in-testsuite? → in-testsuite+
Comment on attachment 576152 [details] [diff] [review]
API version testing

A comment to the effect that "20" is the API version that corresponds to SWF16 would be helpful, took me a little while to track that down.
Attachment #576152 - Flags: feedback?(lhansen) → feedback+
changeset: 6742:9c8b5cb0c79e
user:      Brent Baker <brbaker@adobe.com>
summary:   No bug: Reorganizing a Number testcase in preparation for landing bug 696149 which is in the float branch

http://hg.mozilla.org/tamarin-redux/rev/9c8b5cb0c79e
changeset:   7095:95fcccdb79e6
tag:         tip
user:        Brent Baker <brbaker@adobe.com>
date:        Fri Dec 16 09:12:16 2011 -0500
summary:     Bug 696149: fix a couple of issues in the test media for Number.min and Number.log
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: