-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: remove unneeded string splitting
PR-URL: #12992 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Luca Maraschi <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
- Loading branch information
1 parent
6e7b77f
commit 0cf3e10
Showing
21 changed files
with
54 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,8 @@ assert.throws(function() { | |
http.request(url.parse('file:///whatever')); | ||
}, function(err) { | ||
if (err instanceof Error) { | ||
assert.strictEqual(err.message, 'Protocol "file:" not supported.' + | ||
' Expected "http:"'); | ||
assert.strictEqual( | ||
err.message, 'Protocol "file:" not supported. Expected "http:"'); | ||
return true; | ||
} | ||
}); | ||
|
@@ -19,8 +19,8 @@ assert.throws(function() { | |
http.request(url.parse('mailto:[email protected]')); | ||
}, function(err) { | ||
if (err instanceof Error) { | ||
assert.strictEqual(err.message, 'Protocol "mailto:" not supported.' + | ||
' Expected "http:"'); | ||
assert.strictEqual( | ||
err.message, 'Protocol "mailto:" not supported. Expected "http:"'); | ||
return true; | ||
} | ||
}); | ||
|
@@ -29,8 +29,8 @@ assert.throws(function() { | |
http.request(url.parse('ftp://www.example.com')); | ||
}, function(err) { | ||
if (err instanceof Error) { | ||
assert.strictEqual(err.message, 'Protocol "ftp:" not supported.' + | ||
' Expected "http:"'); | ||
assert.strictEqual( | ||
err.message, 'Protocol "ftp:" not supported. Expected "http:"'); | ||
return true; | ||
} | ||
}); | ||
|
@@ -39,8 +39,8 @@ assert.throws(function() { | |
http.request(url.parse('javascript:alert(\'hello\');')); | ||
}, function(err) { | ||
if (err instanceof Error) { | ||
assert.strictEqual(err.message, 'Protocol "javascript:" not supported.' + | ||
' Expected "http:"'); | ||
assert.strictEqual( | ||
err.message, 'Protocol "javascript:" not supported. Expected "http:"'); | ||
return true; | ||
} | ||
}); | ||
|
@@ -49,8 +49,8 @@ assert.throws(function() { | |
http.request(url.parse('xmpp:[email protected]')); | ||
}, function(err) { | ||
if (err instanceof Error) { | ||
assert.strictEqual(err.message, 'Protocol "xmpp:" not supported.' + | ||
' Expected "http:"'); | ||
assert.strictEqual( | ||
err.message, 'Protocol "xmpp:" not supported. Expected "http:"'); | ||
return true; | ||
} | ||
}); | ||
|
@@ -59,8 +59,8 @@ assert.throws(function() { | |
http.request(url.parse('f://some.host/path')); | ||
}, function(err) { | ||
if (err instanceof Error) { | ||
assert.strictEqual(err.message, 'Protocol "f:" not supported.' + | ||
' Expected "http:"'); | ||
assert.strictEqual( | ||
err.message, 'Protocol "f:" not supported. Expected "http:"'); | ||
return true; | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters