Skip to content

Commit eb42ed4

Browse files
committed
chore: Add test for blob
1 parent 804eace commit eb42ed4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

spec/network_spec.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,19 @@
6969
expect { network.wait_for_idle!(timeout: 0.2) }.to raise_error(Ferrum::TimeoutError)
7070
end
7171

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+
7285
it "raises no error" do
7386
page.go_to("/show_cookies")
7487
expect(page.body).not_to include("test_cookie")

0 commit comments

Comments
 (0)