docs: move protocol-ns to protocol.md (#23883)
* docs: move protocol-ns to protocol.md * chore: fix up tests and implement missing pieces required for tests
This commit is contained in:
parent
edc5050a2e
commit
d3fa5ed1e8
13 changed files with 285 additions and 733 deletions
|
@ -217,16 +217,16 @@ describe('<webview> tag', function () {
|
|||
const zoomScheme = standardScheme;
|
||||
const webviewSession = session.fromPartition('webview-temp');
|
||||
|
||||
before((done) => {
|
||||
before(() => {
|
||||
const protocol = webviewSession.protocol;
|
||||
protocol.registerStringProtocol(zoomScheme, (request, callback) => {
|
||||
callback('hello');
|
||||
}, (error) => done(error));
|
||||
});
|
||||
});
|
||||
|
||||
after((done) => {
|
||||
after(() => {
|
||||
const protocol = webviewSession.protocol;
|
||||
protocol.unregisterProtocol(zoomScheme, (error) => done(error));
|
||||
protocol.unregisterProtocol(zoomScheme);
|
||||
});
|
||||
|
||||
it('inherits the zoomFactor of the parent window', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue