From de8068e21f0394fb3c352c0c86dad9d36d1bb778 Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Thu, 2 Oct 2014 12:32:09 +1000 Subject: [PATCH] Bug 1028497 - Part 26: Tests. r=jdaggett --- layout/style/test/BitPattern.woff | Bin 0 -> 6248 bytes layout/style/test/mochitest.ini | 4 + layout/style/test/neverending_font_load.sjs | 6 + .../test/neverending_stylesheet_load.sjs | 6 + layout/style/test/test_font_loading_api.html | 882 ++++++++++++++++++ 5 files changed, 898 insertions(+) create mode 100644 layout/style/test/BitPattern.woff create mode 100644 layout/style/test/neverending_font_load.sjs create mode 100644 layout/style/test/neverending_stylesheet_load.sjs create mode 100644 layout/style/test/test_font_loading_api.html diff --git a/layout/style/test/BitPattern.woff b/layout/style/test/BitPattern.woff new file mode 100644 index 0000000000000000000000000000000000000000..e4e8244057758f6b888ce985643f59b54f7a2560 GIT binary patch literal 6248 zcmZXYRa9KTwyqn31b6o!4Fo4Zqru(XCAbEM;M%ym1qs?fS@_v3c!)J#7EPB8T z0Fr-Uz3B%_V!gRjgJ9e!CP_m2s6hHCe*Otn4H-}X*NhzL2%hh`B+j2a6xm_a9J4qS zElGkAk{*z*EUwh>OZNDe$h6d$5kU5YvSww_LPK7Dqo^8P1Mn6->o*jk*9!@_HuvdE zLl}g(qjk$0N!U!~MqvB)ftSK;Rr8+Y zEaJdlMP0&)nO?ge1NO32UJ+)D+VHB83(bE#=fj-O_&I`YiN-&aO91z`!{m?5n}*wx z@~Gt6!ZGb|TGCc0Pb_cvV{)zG%W$?I*k0x>vacMO65cSl&3*KblMYBXw*gS7g40YU z$ocYA8Tlu~Z5WKy^)tvOYWK`8B!pFyGl=#AFX%jx0H&$9I3;YYU|darnPl{)JB}%y zP`@h=sqz+XE~=NMgcwT7fX*35U1W|GRS(YTfPy>9=djZ)1rSzWi&(+nl6}i6sf$TF z|FL~{lT|yNXe`a-COp{&*r>BYapL03)g5Lw$YpKN=)98T!rYzlZHm@1rP-nxxLUlz zeuJm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EAF@Y%onLk6J*@*bIX`s^1++i_ z>(7_I|Gr}zOH05`rGT=|&YkOLK6m~;Ks-;O)i?TNRsKsJ7bIstNufQgyuw0Z#3uF3_3`qH2J@p Q+exA&V*k6LPX?g=Kiqt#lK=n! literal 0 HcmV?d00001 diff --git a/layout/style/test/mochitest.ini b/layout/style/test/mochitest.ini index 1db9bc77212f..817d91ee2eb3 100644 --- a/layout/style/test/mochitest.ini +++ b/layout/style/test/mochitest.ini @@ -11,6 +11,8 @@ support-files = media_queries_dynamic_xbl_iframe.html media_queries_dynamic_xbl_style.css media_queries_iframe.html + neverending_font_load.sjs + neverending_stylesheet_load.sjs post-redirect-1.css post-redirect-2.css post-redirect-3.css @@ -136,6 +138,8 @@ support-files = flexbox_layout_testcases.js [test_font_face_parser.html] [test_font_family_parsing.html] [test_font_feature_values_parsing.html] +[test_font_loading_api.html] +support-files = BitPattern.woff [test_garbage_at_end_of_declarations.html] [test_grid_item_shorthands.html] [test_grid_container_shorthands.html] diff --git a/layout/style/test/neverending_font_load.sjs b/layout/style/test/neverending_font_load.sjs new file mode 100644 index 000000000000..7bf419aaf6bd --- /dev/null +++ b/layout/style/test/neverending_font_load.sjs @@ -0,0 +1,6 @@ +function handleRequest(request, response) +{ + response.processAsync(); + response.setHeader("Content-Type", "application/octet-stream", false); + response.write(""); +} diff --git a/layout/style/test/neverending_stylesheet_load.sjs b/layout/style/test/neverending_stylesheet_load.sjs new file mode 100644 index 000000000000..386ffbe3565f --- /dev/null +++ b/layout/style/test/neverending_stylesheet_load.sjs @@ -0,0 +1,6 @@ +function handleRequest(request, response) +{ + response.processAsync(); + response.setHeader("Content-Type", "text/css", false); + response.write(""); +} diff --git a/layout/style/test/test_font_loading_api.html b/layout/style/test/test_font_loading_api.html new file mode 100644 index 000000000000..f04031f65e41 --- /dev/null +++ b/layout/style/test/test_font_loading_api.html @@ -0,0 +1,882 @@ + + +Test for the CSS Font Loading API + + + + + + + + +