mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
14 lines
516 B
JavaScript
14 lines
516 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
function runTests() {
|
|
let url = "data:text/html,<script>try { alert('yo!'); } catch (e) {}</script>";
|
|
ok(!thumbnailExists(url), "Thumbnail file should not already exist.");
|
|
|
|
let capturedURL = yield bgCapture(url);
|
|
is(capturedURL, url, "Captured URL should be URL passed to capture.");
|
|
ok(thumbnailExists(url),
|
|
"Thumbnail file should exist even though it alerted.");
|
|
removeThumbnail(url);
|
|
}
|