fix docs and spec
This commit is contained in:
parent
0f2ae385ed
commit
9c71c9fa6a
3 changed files with 15 additions and 7 deletions
|
@ -841,6 +841,12 @@ describe('protocol module', function () {
|
|||
})
|
||||
})
|
||||
|
||||
it('throws when called after ready event', function () {
|
||||
assert.throws(function () {
|
||||
protocol.registerStandardSchemes(['some-scheme'])
|
||||
}, 'protocol.registerStandardSchemes should be called before app is ready')
|
||||
})
|
||||
|
||||
it('resolves relative resources', function (done) {
|
||||
var handler = function (request, callback) {
|
||||
if (request.url === imageURL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue