1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/plugins/test/reftest/pluginproblemui-direction-2.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,25 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-expect-process-crash reftest-wait"> 1.6 + <head> 1.7 + <title>Plugin Problem UI directionality test</title> 1.8 + </head> 1.9 + <body dir="rtl" style="text-align: left;"> 1.10 + <!-- a variant of pluginproblemui-direction-1.html that covers up 1.11 + the spot where we get random variation with d2d, so that we 1.12 + can still test it with d2d --> 1.13 + <div style="position: absolute; width: 1px; height: 1px; background: red; z-index: 1; left: 401px; top: 19px;"></div> 1.14 + <embed type="application/x-test" width="400" height="400" id="crashme"></embed> 1.15 + <script type="text/javascript"> 1.16 + var plugin = document.getElementById("crashme"); 1.17 + function checkForCrashUI() { 1.18 + if (getComputedStyle(plugin, null).MozBinding != "none") { 1.19 + document.documentElement.classList.remove("reftest-wait"); 1.20 + clearInterval(interval); 1.21 + } 1.22 + } 1.23 + 1.24 + var interval = setInterval(checkForCrashUI, 100); 1.25 + setTimeout(function() { plugin.crash(); }, 0); 1.26 + </script> 1.27 + </body> 1.28 +</html>