Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1784 from zombie/1033838-fix-test-tab
Browse files Browse the repository at this point in the history
bug 1033838 - fix test-tab.js and eable it in e10s test addon, r=@Mossop
  • Loading branch information
zombie committed Dec 31, 2014
2 parents c50b5ab + 84120f0 commit 6cf2624
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/addons/e10s-tabs/lib/main.js
Expand Up @@ -10,7 +10,7 @@ const SKIPPING_TESTS = {
"test skip": (assert) => assert.pass("nothing to test here")
};

// merge(module.exports, require('./test-tab'));
merge(module.exports, require('./test-tab'));
merge(module.exports, require('./test-tab-events'));
merge(module.exports, require('./test-tab-observer'));
merge(module.exports, require('./test-tab-utils'));
Expand Down
4 changes: 2 additions & 2 deletions test/addons/e10s-tabs/lib/test-tab.js
Expand Up @@ -176,8 +176,8 @@ exports["test tab.readyState"] = (assert, done) => {
tabs.open({
url: "data:text/html;charset=utf-8,test_readyState",
onOpen: (tab) => {
assert.equal(tab.readyState, "uninitialized",
"tab is 'uninitialized' when opened");
assert.notEqual(["unitialized", "loading"].indexOf(tab.readyState), -1,
"tab is either uninitialized or loading when onOpen");
},
onReady: (tab) => {
assert.notEqual(["interactive", "complete"].indexOf(tab.readyState), -1,
Expand Down
4 changes: 2 additions & 2 deletions test/test-tab.js
Expand Up @@ -175,8 +175,8 @@ exports["test tab.readyState"] = (assert, done) => {
tabs.open({
url: "data:text/html;charset=utf-8,test_readyState",
onOpen: (tab) => {
assert.equal(tab.readyState, "uninitialized",
"tab is 'uninitialized' when opened");
assert.notEqual(["unitialized", "loading"].indexOf(tab.readyState), -1,
"tab is either uninitialized or loading when onOpen");
},
onReady: (tab) => {
assert.notEqual(["interactive", "complete"].indexOf(tab.readyState), -1,
Expand Down

0 comments on commit 6cf2624

Please sign in to comment.