gecko-dev/layout/svg/tests/test_hover_near_text.html
Brian Grinstead ede8c44ef2 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

--HG--
extra : moz-landing-system : lando
2019-04-16 03:50:44 +00:00

30 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
<title>Test mouse hover near text element inside svg element with viewBox attribute</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
</head>
<body style="margin:0">
<div>
<svg viewBox="-1 -1 2 2" width="300" height="300">
<text style="font-size:0.1px" onmouseover="this.setAttribute('fill', 'red')">Hi</text>
</svg>
</div>
<p>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1519144">Mozilla Bug 1519144</a>
</p>
<script type="application/javascript">
let utils = SpecialPowers.getDOMWindowUtils(window);
utils.sendMouseEvent('mousemove', 155, 125, 0, 0, 0); //hover above the text
utils.sendMouseEvent('mousemove', 125, 155, 0, 0, 0); //hover to the left of the text
requestIdleCallback(() => {
ok(!document.getElementsByTagName('text')[0].hasAttribute('fill'),
'Text element should not receive an event');
SimpleTest.finish();
});
SimpleTest.waitForExplicitFinish()
</script>
</body>
</html>