We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 804eace commit eb42ed4Copy full SHA for eb42ed4
spec/network_spec.rb
@@ -69,6 +69,19 @@
69
expect { network.wait_for_idle!(timeout: 0.2) }.to raise_error(Ferrum::TimeoutError)
70
end
71
72
+ it "raises no error for blobs" do
73
+ page.go_to("/show_cookies")
74
+ page.evaluate(<<~JS)
75
+ (function () {
76
+ var code = URL.createObjectURL(new Blob(['self.onmessage = function(){}'],{type:"text/javascript"}));
77
+ _ = new Worker(code);
78
+ return null;
79
+ })()
80
+ JS
81
+
82
+ expect { page.network.wait_for_idle!(duration: 1) }.not_to raise_error
83
+ end
84
85
it "raises no error" do
86
page.go_to("/show_cookies")
87
expect(page.body).not_to include("test_cookie")
0 commit comments