|
|
@ -4,16 +4,19 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
const div_in = target.querySelector('#in');
|
|
|
|
const div_in = target.querySelector('#in');
|
|
|
|
const div_out = target.querySelector('#out');
|
|
|
|
const div_out = target.querySelector('#out');
|
|
|
|
const div_both = target.querySelector('#both');
|
|
|
|
const div_bothin = target.querySelector('#both-in');
|
|
|
|
|
|
|
|
const div_bothout = target.querySelector('#both-out');
|
|
|
|
|
|
|
|
|
|
|
|
assert.equal(div_in.initial, 'in');
|
|
|
|
assert.equal(div_in.directions, 'in,in');
|
|
|
|
assert.equal(div_out.initial, 'out');
|
|
|
|
assert.equal(div_out.directions, 'out');
|
|
|
|
assert.equal(div_both.initial, 'both');
|
|
|
|
assert.equal(div_bothin.directions, 'both');
|
|
|
|
|
|
|
|
assert.equal(div_bothout.directions, 'both');
|
|
|
|
|
|
|
|
|
|
|
|
return Promise.resolve().then(() => {
|
|
|
|
return Promise.resolve().then(() => {
|
|
|
|
assert.equal(div_in.later, 'in');
|
|
|
|
assert.equal(div_in.directions, 'in,in');
|
|
|
|
assert.equal(div_out.later, 'out');
|
|
|
|
assert.equal(div_out.directions, 'out,out');
|
|
|
|
assert.equal(div_both.later, 'both');
|
|
|
|
assert.equal(div_bothin.directions, 'both,in');
|
|
|
|
|
|
|
|
assert.equal(div_bothout.directions, 'both,out');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|