Skip to content

Commit

Permalink
Merge pull request GoogleChrome#66 from samthor/master
Browse files Browse the repository at this point in the history
IE9 test sanity
  • Loading branch information
samthor committed Aug 4, 2015
2 parents accde47 6a3588d commit bab2fed
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 27,8 @@ void function() {
var expectedTop = (window.innerHeight - d.offsetHeight) / 2;
var expectedLeft = (window.innerWidth - d.offsetWidth) / 2;
var rect = d.getBoundingClientRect();
assert.closeTo(rect.top, expectedTop, 1);
assert.closeTo(rect.left, expectedLeft, 1);
assert.closeTo(rect.top, expectedTop, 1, 'top should be nearby');
assert.closeTo(rect.left, expectedLeft, 1, 'left should be nearby');
}

/**
Expand Down Expand Up @@ -423,7 423,12 @@ void function() {
var value = 'ExpectedValue' Math.random();

var form = document.createElement('form');
form.method = 'dialog';
try {
form.method = 'dialog';
} catch (e) {
// Setting the method directly throws an exception in <=IE9.
form.setAttribute('method', 'dialog');
}
dialog.appendChild(form);

var input = document.createElement('input');
Expand Down

0 comments on commit bab2fed

Please sign in to comment.