Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix(ui): dont show till respecIsReady (closes #410)
* fix(profile-w3c-common): forgot to include fetch poly for Safari * Chore(.travis.yml): use latest firefox * Fix(ui): dont show till respecIsReady (closes #410)
- Loading branch information
Marcos Cáceres
committed
Apr 20, 2016
1 parent
19b5647
commit 751aa63
Showing
7 changed files
with
61 additions
and
15 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"use strict"; | ||
|
||
describe("Core - Ui", function () { | ||
afterAll(function (done) { | ||
flushIframes(); | ||
done(); | ||
}); | ||
|
||
it("shows and hides the UI", function (done) { | ||
makeRSDoc(makeStandardOps(), function (doc) { | ||
var ui = doc.defaultView.respecUI; | ||
var pillContainer = doc.querySelector("#respec-ui"); | ||
// Initially, it should be showing | ||
expect(pillContainer.classList.contains("respec-hidden")).toBe(false); | ||
ui.show(); | ||
// showing it doesn't change it from showing | ||
expect(pillContainer.classList.contains("respec-hidden")).toBe(false); | ||
ui.hide(); | ||
expect(pillContainer.classList.contains("respec-hidden")).toBe(true); | ||
ui.show(); | ||
expect(pillContainer.classList.contains("respec-hidden")).toBe(false); | ||
}).then(done); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters