Closed Bug 608760 Opened 14 years ago Closed 13 years ago

Tamarin tests with versioning checks not exported into ATS

Categories

(Tamarin Graveyard :: Tools, defect, P4)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Q3 11 - Serrano

People

(Reporter: cpeyer, Assigned: cpeyer)

Details

Attachments

(2 files)

The flash player team is still coming up with the right way to test versioned bug fixes in the ATS.  Until that has been determined, Tamarin versioning tests must be skipped on ATS export.
Flags: flashplayer-triage+
Flags: flashplayer-qrb?
Assignee: nobody → cpeyer
Status: NEW → ASSIGNED
Flags: flashplayer-bug-
Priority: -- → P4
Target Milestone: --- → flash10.x-Serrano
Has the situation changed yet?
Flags: in-testsuite?
Flags: flashplayer-qrb?
Flags: flashplayer-qrb+
Flags: flashplayer-injection-
Ping...
We will be able to do this when

https://bugs.adobe.com/jira/browse/ASC-4232

is fixed.  This will also require changes to the runtests.py code that generates swfs.  We will need to check for the use of .avm_args files that have USES_SWFVERSION and output a seperate swf for every available version.  The use of avmplus.System.swfVersion will have to be replaced by flash.display.LoaderInfo.swfVersion so we will also need to modify all of the versioned tests.
I had to update this test for the ATS as it was not deleting a prototype property it was setting.  I then realized that this test actually now uses some versioning checks and so updated the test to be versioning compatible in the ATS.  This is probably a good template to see how to update the other tamarin versioning tests (though we may want to move the swfVersion logic into shell.as).
Attachment #529178 - Flags: review?(jsudduth)
Attachment #529178 - Flags: review?(jsudduth) → review+
changeset: 6247:cbb91ee4ba35
user:      Chris Peyer <cpeyer@adobe.com>
summary:   Bug 608760: Update test to be ATS compatible (r=jsudduth)

http://hg.mozilla.org/tamarin-redux/rev/cbb91ee4ba35
This patch fixes up the current versioning tests to be compatible with this bug, as well as adds .avm_args files for tests that use versioning but were missing the USES_SWFVERSION directive.

When creating ATS tests for versioned tests, a separate swf will be created for every available swfversion and will be named with _vX where X is the version number.

Also has some code cleanup and removal of ATS generation code in compile_test as all ATS gen happens via compileWithAsh.
Attachment #530414 - Flags: review?(brbaker)
Comment on attachment 530414 [details] [diff] [review]
Add ability to export multiple versioned swfs to the ats

Looks good, but appears that a change snuck in here:
mmgc/pauseForGCIfCollectionImminent.as

I have a feeling this should not be part of this patch.
Attachment #530414 - Flags: review?(brbaker) → review+
changeset: 6277:8cfb04474edc
user:      Chris Peyer <cpeyer@adobe.com>
summary:   Bug 608760: Add ability to export versioned tests to ATS swfs (note that this requires asc.jar 4:554f21f659dd from asc-main repo) (r=brbaker)

http://hg.mozilla.org/tamarin-redux/rev/8cfb04474edc
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
tamarin-redux-serrano brbaker$ hg log -r f7be25bb83c3
changeset:   6267:f7be25bb83c3
user:        Chris Peyer <cpeyer@adobe.com>
date:        Fri May 06 08:47:47 2011 -0700
summary:     Bug 608760: Add ability to export versioned tests to ATS swfs (note that this requires asc.jar 4:554f21f659dd from asc-main repo) (r=brbaker)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: