@@ -22,7 +22,7 @@ exports["explicit config.html, full document"] = function (t) {
22
22
url : "http://example.com/" ,
23
23
done : function ( err , window ) {
24
24
t . ifError ( err ) ;
25
- t . equal ( serializeDocument ( window . document , { omitDoctype : true } ) , "<!DOCTYPE html><html><head><title>Hi</title></head><body>Hello</body></html>" ) ;
25
+ t . equal ( serializeDocument ( window . document ) , "<!DOCTYPE html><html><head><title>Hi</title></head><body>Hello</body></html>" ) ;
26
26
t . equal ( window . location . href , "http://example.com/" ) ;
27
27
t . equal ( window . location . origin , "http://example.com" ) ;
28
28
t . done ( ) ;
@@ -36,7 +36,7 @@ exports["explicit config.html, with overriden config.url"] = function (t) {
36
36
url : "http://example.com/" ,
37
37
done : function ( err , window ) {
38
38
t . ifError ( err ) ;
39
- t . equal ( serializeDocument ( window . document , { omitDoctype : true } ) , "<html><head></head><body>Hello</body></html>" ) ;
39
+ t . equal ( serializeDocument ( window . document ) , "<html><head></head><body>Hello</body></html>" ) ;
40
40
t . equal ( window . location . href , "http://example.com/" ) ;
41
41
t . equal ( window . location . origin , "http://example.com" ) ;
42
42
t . equal ( window . location . search , "" ) ;
@@ -99,7 +99,7 @@ exports["explicit config.html, a string that is also a valid URL"] = function (t
99
99
url : "http://example.com/" ,
100
100
done : function ( err , window ) {
101
101
t . ifError ( err ) ;
102
- t . equal ( serializeDocument ( window . document , { omitDoctype : true } ) , "<html><head></head><body>http://example.com/</body></html>" ) ;
102
+ t . equal ( serializeDocument ( window . document ) , "<html><head></head><body>http://example.com/</body></html>" ) ;
103
103
t . equal ( window . location . href , "http://example.com/" ) ;
104
104
t . done ( ) ;
105
105
}
@@ -113,7 +113,7 @@ exports["explicit config.html, a string that is also a valid file"] = function (
113
113
url : "http://example.com/" ,
114
114
done : function ( err , window ) {
115
115
t . ifError ( err ) ;
116
- t . equal ( serializeDocument ( window . document , { omitDoctype : true } ) , "<html><head></head><body>" + body + "</body></html>" ) ;
116
+ t . equal ( serializeDocument ( window . document ) , "<html><head></head><body>" + body + "</body></html>" ) ;
117
117
t . equal ( window . location . href , "http://example.com/" ) ;
118
118
t . done ( ) ;
119
119
}
@@ -134,7 +134,7 @@ exports["explicit config.url, valid"] = function (t) {
134
134
url : "http://localhost:8976/" ,
135
135
done : function ( err , window ) {
136
136
t . ifError ( err ) ;
137
- t . equal ( serializeDocument ( window . document , { omitDoctype : true } ) , responseText ) ;
137
+ t . equal ( serializeDocument ( window . document ) , responseText ) ;
138
138
t . equal ( window . location . href , "http://localhost:8976/" ) ;
139
139
t . equal ( window . location . origin , "http://localhost:8976" ) ;
140
140
t . done ( ) ;
@@ -160,7 +160,7 @@ exports["explicit config.file, valid"] = function (t) {
160
160
file : fileName ,
161
161
done : function ( err , window ) {
162
162
t . ifError ( err ) ;
163
- t . equal ( serializeDocument ( window . document , { omitDoctype : true } ) , '<!DOCTYPE html><html><head>\n\
163
+ t . equal ( serializeDocument ( window . document ) , '<!DOCTYPE html><html><head>\n\
164
164
<title>hello, Node.js!</title>\n\
165
165
</head>\n\
166
166
<body>\n\
@@ -228,7 +228,7 @@ exports["string, parseable as a URL, valid"] = function (t) {
228
228
"http://localhost:8976/" ,
229
229
function ( err , window ) {
230
230
t . ifError ( err ) ;
231
- t . equal ( serializeDocument ( window . document , { omitDoctype : true } ) , responseText ) ;
231
+ t . equal ( serializeDocument ( window . document ) , responseText ) ;
232
232
t . equal ( window . location . href , "http://localhost:8976/" ) ;
233
233
t . equal ( window . location . origin , "http://localhost:8976" ) ;
234
234
t . done ( ) ;
@@ -254,7 +254,7 @@ exports["string, for an existing filename"] = function (t) {
254
254
fileName ,
255
255
function ( err , window ) {
256
256
t . ifError ( err ) ;
257
- t . equal ( serializeDocument ( window . document , { omitDoctype : true } ) , '<!DOCTYPE html><html><head>\n\
257
+ t . equal ( serializeDocument ( window . document ) , '<!DOCTYPE html><html><head>\n\
258
258
<title>hello, Node.js!</title>\n\
259
259
</head>\n\
260
260
<body>\n\
@@ -274,7 +274,7 @@ exports["string, does not exist as a file"] = function (t) {
274
274
body ,
275
275
function ( err , window ) {
276
276
t . ifError ( err ) ;
277
- t . equal ( serializeDocument ( window . document , { omitDoctype : true } ) , "<html><head></head><body>" + body + "</body></html>" ) ;
277
+ t . equal ( serializeDocument ( window . document ) , "<html><head></head><body>" + body + "</body></html>" ) ;
278
278
t . done ( ) ;
279
279
}
280
280
) ;
@@ -285,7 +285,7 @@ exports["string, full HTML document"] = function (t) {
285
285
"<!DOCTYPE html><html><head><title>Hi</title></head><body>Hello</body></html>" ,
286
286
function ( err , window ) {
287
287
t . ifError ( err ) ;
288
- t . equal ( serializeDocument ( window . document , { omitDoctype : true } ) , "<!DOCTYPE html><html><head><title>Hi</title></head><body>Hello</body></html>" ) ;
288
+ t . equal ( serializeDocument ( window . document ) , "<!DOCTYPE html><html><head><title>Hi</title></head><body>Hello</body></html>" ) ;
289
289
t . done ( ) ;
290
290
}
291
291
) ;
0 commit comments