変数名を揃えた
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7151 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
f7a2eb06c5
commit
426d5dca35
@ -18,16 +18,16 @@ function tearDown()
|
|||||||
|
|
||||||
function test_fireStateChangingEvent()
|
function test_fireStateChangingEvent()
|
||||||
{
|
{
|
||||||
var shown = Math.random() + Date.now() + 'expanded';
|
var expanded = Math.random() + Date.now() + 'expanded';
|
||||||
var state = Math.random() + Date.now() + 'expanded';
|
var state = Math.random() + Date.now() + 'state';
|
||||||
|
|
||||||
owner.browser = new Mock('browser');
|
owner.browser = new Mock('browser');
|
||||||
owner.browser.expect('dispatchEvent', TypeOf(Ci.nsIDOMEvent))
|
owner.browser.expect('dispatchEvent', TypeOf(Ci.nsIDOMEvent))
|
||||||
.then(function(aEvent) {
|
.then(function(aEvent) {
|
||||||
assert.equals(shown, aEvent.shown);
|
assert.equals(expanded, aEvent.shown);
|
||||||
assert.equals(state, aEvent.state);
|
assert.equals(state, aEvent.state);
|
||||||
});
|
});
|
||||||
Mock.expectGet(autoHide, 'expanded', shown);
|
Mock.expectGet(autoHide, 'expanded', expanded);
|
||||||
Mock.expectGet(autoHide, 'state', state);
|
Mock.expectGet(autoHide, 'state', state);
|
||||||
|
|
||||||
autoHide.fireStateChangingEvent();
|
autoHide.fireStateChangingEvent();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user