Closed Bug 868384 Opened 12 years ago Closed 12 years ago

Convert assertions.js and stack.js to an old style module to be loadable by controller.js

Categories

(Testing Graveyard :: Mozmill, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: daniela.p98911, Assigned: whimboo)

References

Details

(Whiteboard: [mozmill-2.0+][ateamtrack: p=mozmill q=2013q2 m=2])

Attachments

(2 files)

This bug was discovered while trying to use assert.waitFor inside the controller.js (bug 791634). We need to change assertions.js so that assert and expect can be used outside the module loader. Controller.js is not loaded through the module loader so assert and expect are undefined if used inside it.
Blocks: 791634
Whiteboard: [mozmill-2.0?]
Summary: Change assertions.js to be used outside module loader → Convert assertions.js to an old style module to be loadable by controller.js
Assignee: nobody → hskupin
Summary: Convert assertions.js to an old style module to be loadable by controller.js → Convert assertions.js and stack.js to an old style module to be loadable by controller.js
Attached patch Patch v1Splinter Review
With this change we will be able to make use of the assertions module in the controller.js and utils.js module. It's needed to get various soft waitfor's implemented.
Attachment #745899 - Flags: review?(ctalbert)
Status: NEW → ASSIGNED
Comment on attachment 745899 [details] [diff] [review] Patch v1 Review of attachment 745899 [details] [diff] [review]: ----------------------------------------------------------------- r+
Attachment #745899 - Flags: review?(ctalbert) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [mozmill-2.0?] → [mozmill-2.0?][ateamtrack: p=mozmill q=2013q2 m=2]
Sorry, but I missed to update the appropriate test for assertions. Follow-up patch is coming.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #746872 - Flags: review?(andreea.matei)
Comment on attachment 746872 [details] [diff] [review] Fix for expect_assert.js Review of attachment 746872 [details] [diff] [review]: ----------------------------------------------------------------- Looks and works fine.
Attachment #746872 - Flags: review?(andreea.matei) → review+
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
Whiteboard: [mozmill-2.0?][ateamtrack: p=mozmill q=2013q2 m=2] → [mozmill-2.0+][ateamtrack: p=mozmill q=2013q2 m=2]
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: