opaque-ad-sizes-exact-size.https.html (1465B)
1 <!DOCTYPE html> 2 <title>Test frame size restrictions in FLEDGE.</title> 3 <meta name="timeout" content="long"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="/common/utils.js"></script> 7 <script src="/common/dispatcher/dispatcher.js"></script> 8 <script src="resources/utils.js"></script> 9 <script src="resources/opaque-ad-sizes-utils.js"></script> 10 11 <body> 12 <script> 13 14 // Exact size cases. 15 promise_test(async () => { return runOpaqueAdSizesTest(320, 50, 320, 50); }, '320x50'); 16 promise_test(async () => { return runOpaqueAdSizesTest(728, 90, 728, 90); }, '728x90'); 17 promise_test(async () => { return runOpaqueAdSizesTest(970, 90, 970, 90); }, '970x90'); 18 promise_test(async () => { return runOpaqueAdSizesTest(320, 100, 320, 100); }, '320x100'); 19 promise_test(async () => { return runOpaqueAdSizesTest(160, 600, 160, 600); }, '160x600'); 20 promise_test(async () => { return runOpaqueAdSizesTest(300, 250, 300, 250); }, '300x250'); 21 promise_test(async () => { return runOpaqueAdSizesTest(970, 250, 970, 250); }, '970x250'); 22 promise_test(async () => { return runOpaqueAdSizesTest(336, 280, 336, 280); }, '336x280'); 23 promise_test(async () => { return runOpaqueAdSizesTest(320, 480, 320, 480); }, '320x48'); 24 promise_test(async () => { return runOpaqueAdSizesTest(300, 600, 300, 600); }, '300x600'); 25 promise_test(async () => { return runOpaqueAdSizesTest(300, 1050, 300, 1050); }, '300x1050'); 26 </script> 27 </body>