diff --git a/test/client/stringify.spec.js b/test/client/stringify.spec.js
index 213d1895f..5127f46b2 100644
--- a/test/client/stringify.spec.js
+++ b/test/client/stringify.spec.js
@@ -64,14 +64,14 @@ describe('stringify', function () {
it('should serialize html', function () {
var div = document.createElement('div')
- assert.deepEqual(stringify(div).trim(), '
')
+ assert.deepEqual(stringify(div).trim().toLowerCase(), '')
div.innerHTML = 'some text'
- assert.deepEqual(stringify(div), 'some text
')
+ assert.deepEqual(stringify(div).trim().toLowerCase(), 'some text
')
})
it('should serialize DOMParser objects', function () {
- if (DOMParser) {
+ if (typeof DOMParser !== 'undefined') {
// Test only works in IE 9 and above
var parser = new DOMParser()
var doc = parser.parseFromString('', 'application/xml')
@@ -81,7 +81,7 @@ describe('stringify', function () {
it('should serialize across iframes', function () {
var div = document.createElement('div')
- assert.deepEqual(__karma__.stringify(div).trim(), '')
+ assert.deepEqual(__karma__.stringify(div).trim().toLowerCase(), '')
assert.deepEqual(__karma__.stringify([1, 2]), '[1, 2]')
})