Skip to content

Commit

Permalink
fix tests in IE 9-10
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreensp committed Jul 12, 2012
1 parent bb3bc20 commit fb3ccd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/liveui/liveui_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,7 @@ Tinytest.add("liveui - event handling", function(test) {
}, { events: eventmap('change b', 'change input', event_buf),
event_data:event_buf }));
Meteor.flush();
test.equal(div.text(), 'else');
test.equal(div.text().match(/\S+/)[0], 'else');
// click on input
var doClick = function() {
clickElement(div.node().getElementsByTagName('input')[0]);
Expand All @@ -1461,13 +1461,13 @@ Tinytest.add("liveui - event handling", function(test) {
lst.push({_id:'foo'});
lst.callbacks.added(lst[0], 0);
Meteor.flush();
test.equal(div.text(), 'foo');
test.equal(div.text().match(/\S+/)[0], 'foo');
doClick();
// remove item, back to "else" case
lst.callbacks.removed(lst[0], 0);
lst.pop();
Meteor.flush();
test.equal(div.text(), 'else');
test.equal(div.text().match(/\S+/)[0], 'else');
doClick();
// cleanup
div.kill();
Expand Down

0 comments on commit fb3ccd7

Please sign in to comment.