Files
tubestation/layout/base/tests/test_bug404209.xhtml
Brian Grinstead 6bf5cf3d2a Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky
This excludes dom/, otherwise the file size is too large for phabricator to handle.

This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 2` argument.

Differential Revision: https://phabricator.services.mozilla.com/D27456
2019-04-16 03:50:44 +00:00

48 lines
1.2 KiB
HTML

<html xmlns="http://www.w3.org/1999/xhtml">
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=404209
-->
<head>
<title>Test for Bug 404209</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
<style type="text/css">
div::first-letter { color: green; }
</style>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=404209">Mozilla Bug 404209</a>
<table id="table" dir="rtl"><div><span id="v"><span><tfoot></tfoot>abcd</span></span></div></table>
<pre id="test">
<script class="testbody" type="text/javascript">
function boom1()
{
document.getElementById("table").style.borderRight = "1px solid magenta";
setTimeout(boom2, 400);
}
function boom2()
{
var v = document.getElementById("v");
var newTD = document.createElementNS("http://www.w3.org/1999/xhtml", "td");
newTD.setAttribute("width", "13%");
v.insertBefore(newTD, v.firstChild);
setTimeout(lastTest, 400);
}
function lastTest()
{
/** Test for Bug 404209 **/
ok(true, "Should not crash");
SimpleTest.finish();
}
SimpleTest.requestFlakyTimeout("untriaged");
setTimeout(boom1, 400);
SimpleTest.waitForExplicitFinish();
</script>
</pre>
</body>
</html>