You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1153,6 +1151,16 @@ describe('<webview> tag', function () {
1153
1151
})
1154
1152
1155
1153
describe('will-attach-webview event',()=>{
1154
+
it('does not emit when src is not changed',(done)=>{
1155
+
document.body.appendChild(webview)
1156
+
setTimeout(()=>{
1157
+
assert.throws(()=>{
1158
+
webview.stop()
1159
+
},'Cannot call stop because the webContents is unavailable. The WebView must be attached to the DOM and the dom-ready event emitted before this method can be called.')
1160
+
done()
1161
+
})
1162
+
})
1163
+
1156
1164
it('supports changing the web preferences',(done)=>{
0 commit comments