Fix failing unit tests in various browsers.

Former-commit-id: 9b5c6e82e0dfed79c505f41b66030ede81ca9a1c
This commit is contained in:
John-David Dalton
2012-08-07 00:17:04 -07:00
parent 4d85a79fd1
commit 0077580838
2 changed files with 11 additions and 10 deletions

View File

@@ -753,7 +753,9 @@
var idoc = (idoc = iframe.contentDocument || iframe.contentWindow).document || idoc;
idoc.write("<script>parent._._object = { 'a': 1, 'b': 2, 'c': 3 };<\/script>");
idoc.close();
}
// ensure `_._object` is assigned (unassigned in Opera 10.00)
if (_._object) {
equal(_.isEqual(object, _._object), true);
body.removeChild(iframe);
delete _._object;