mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
ede8c44ef2
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
38 lines
945 B
HTML
38 lines
945 B
HTML
<html>
|
|
<head>
|
|
<script src="/tests/SimpleTest/EventUtils.js"></script>
|
|
<script src="NavigationUtils.js"></script>
|
|
<script>
|
|
function navigate() {
|
|
var args = window.location.hash.substring(1).split(",");
|
|
var target = args[0];
|
|
var mechanism = args[1];
|
|
|
|
switch (mechanism) {
|
|
case "location":
|
|
// eslint-disable-next-line no-eval
|
|
navigateByLocation(eval(target));
|
|
break;
|
|
case "open":
|
|
navigateByOpen(target);
|
|
break;
|
|
case "form":
|
|
navigateByForm(target);
|
|
break;
|
|
case "hyperlink":
|
|
navigateByHyperlink(target);
|
|
break;
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="navigate();">
|
|
<script>
|
|
var args = window.location.hash.substring(1).split(",");
|
|
var target = args[0];
|
|
var mechanism = args[1];
|
|
document.write("target=" + target + " mechanism=" + mechanism);
|
|
</script>
|
|
</body>
|
|
</html>
|