Bug 1935611 - Fix libyuv/libpng link failed for loongarch64. r=glandium,tnikkel,ng
[gecko.git] / dom / canvas / test / test_imagebitmap_structuredclone_window.html
blob89881c779ae6b8ee73649524d9520b72acd3d630
1 <!DOCTYPE HTML>
2 <title>Test ImageBitmap : StructuredClone main window to main window</title>
3 <meta charset="utf-8">
4 <script src="/tests/SimpleTest/SimpleTest.js"></script>
5 <link rel="stylesheet" href="/tests/SimpleTest/test.css">
6 <body>
7 <script src="imagebitmap_structuredclone_utils.js"></script>
8 <script type="text/javascript">
10 window.onmessage = function(event) {
11 compareImageBitmapWithImageElement(event.data.bitmap1, gImage1);
12 compareImageBitmapWithImageElement(event.data.bitmap2, gImage2);
13 compareImageBitmapWithImageData(event.data.bitmap3, gImageData, "Check preserving alpha");
14 SimpleTest.finish();
17 function runTests() {
18 prepareImageBitmaps().then(function(){
19 window.postMessage({"bitmap1":gImageBitmap1, "bitmap2":gImageBitmap2, "bitmap3":gImageBitmap3}, "*");
20 });
23 SimpleTest.waitForExplicitFinish();
24 addLoadEvent(runTests);
26 </script>
27 </body>