test_ManifestProcessor_icons.html (742B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1079453 5 --> 6 <head> 7 <meta charset="utf-8"> 8 <title>Test for Bug 1079453</title> 9 <script src="/tests/SimpleTest/SimpleTest.js"></script> 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 11 <script src="common.js"></script> 12 <script> 13 /** 14 * Manifest icons member 15 * https://w3c.github.io/manifest/#icons-member 16 */ 17 18 "use strict"; 19 20 typeTests.forEach((type) => { 21 var expected = `Expect non-array icons to be empty array: ${typeof type}.`; 22 data.jsonText = JSON.stringify({ 23 icons: type, 24 }); 25 var result = processor.process(data); 26 SpecialPowers.unwrap(result.icons); 27 is(result.icons.length, 0, expected); 28 }); 29 </script> 30 </head>