Skip to content

Commit

Permalink
Make tests work on all supported platforms, including unrelated IE issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bmomberger-bitovi committed May 1, 2017
1 parent fbf76d1 commit e3c3858
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion list/list-test.js
Expand Up @@ -375,7 +375,9 @@ test('list.map', function() {
newExtendedList.testMe();
}, {
name: 'TypeError',
message: 'newExtendedList.testMe is not a function'
message: (navigator.userAgent.indexOf("Trident") > -1 ?
"Object doesn't support property or method 'testMe'" :
"newExtendedList.testMe is not a function")
}, 'Does not return the same type of list.');
});

Expand Down
4 changes: 2 additions & 2 deletions map/map-test.js
Expand Up @@ -700,7 +700,7 @@ QUnit.test("redefines still not allowed on sealed objects", function() {
quux: { value: "jeek" }
}, baz._define);
} catch(e) {
QUnit.ok(/object is not extensible/.test(e.message), "Sealed object throws on data property defines");
QUnit.ok(/object is not extensible/i.test(e.message), "Sealed object throws on data property defines");
QUnit.ok(!Object.getOwnPropertyDescriptor(baz, "quux"), "nothing set on object");
QUnit.ok(!Object.getOwnPropertyDescriptor(baz._data, "quux"), "nothing set on _data");
}
Expand All @@ -714,7 +714,7 @@ QUnit.test("redefines still not allowed on sealed objects", function() {
}
}, baz._define);
} catch(e) {
QUnit.ok(/object is not extensible/.test(e.message), "Sealed object throws on computed property defines");
QUnit.ok(/object is not extensible/i.test(e.message), "Sealed object throws on computed property defines");
QUnit.ok(!Object.getOwnPropertyDescriptor(baz, "plonk"), "nothing set on object");
QUnit.ok(!Object.getOwnPropertyDescriptor(baz._computed, "plonk"), "nothing set on _computed");
}
Expand Down

0 comments on commit e3c3858

Please sign in to comment.