Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Use one window for all specs in the suite on more integration tests #4635

Merged
merged 1 commit into from
Aug 2, 2013
Merged

Use one window for all specs in the suite on more integration tests #4635

merged 1 commit into from
Aug 2, 2013

Conversation

TomMalbran
Copy link
Contributor

I just integrated the specs on the following tests into a single window:

  • CSSUtils-test
  • ExtensionUtils-test
  • Menu-test
  • ProjectManager-test
  • WorkingSetView-test

@jasonsanjose Want to review these too? Most were pretty simple to join and all tests are passing fast!!

Is so much nicer to run all integration tests now :)



describe("Working with unsaved changes", function () {
describe("CSS Intgration Tests", function () {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This File is a mess, but I just moved both integration suits from this file to this new suite used to create and destroy the window.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@ghost ghost assigned jasonsanjose Aug 2, 2013
@jasonsanjose
Copy link
Member

Reviewing


// open file
runs(function () {
FileViewController.openAndSelectDocument(path, FileViewController.PROJECT_MANAGER)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove didOpen, gotError and the waitsFor below, then replace this with

waitsForDone(FileViewController.openAndSelectDocument(path, FileViewController.PROJECT_MANAGER), "FILE_OPEN on file timeout", 1000);

@jasonsanjose
Copy link
Member

Merging. My note about cleaning up promise handling can really apply to most of our unit tests that were created before waitsForDone. I'll file a code cleanup task.

jasonsanjose added a commit that referenced this pull request Aug 2, 2013
Use one window for all specs in the suite on more integration tests
@jasonsanjose jasonsanjose merged commit e921555 into adobe:master Aug 2, 2013
@jasonsanjose
Copy link
Member

Filed #4638

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants