Skip to content

Commit

Permalink
Add failure if "Duplicate notifyFinishedToHarness()". (KhronosGroup#3311
Browse files Browse the repository at this point in the history
)

This ends up being an error in Firefox's harness, so let's prevent it
upstream too.
  • Loading branch information
kdashg authored Aug 11, 2021
1 parent 9ec0bd5 commit 12db127
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sdk/tests/conformance/glsl/bugs/character-set.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,5 @@
var successfullyParsed = true;

</script>
<script src="../../../js/js-test-post.js"></script>

</body>
</html>
5 changes: 5 additions & 0 deletions sdk/tests/js/js-test-pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ function reportSkippedTestResultsToHarness(success, msg) {
}

function notifyFinishedToHarness() {
if (window._didNotifyFinishedToHarness) {
testFailed("Duplicate notifyFinishedToHarness()");
}
window._didNotifyFinishedToHarness = true;

if (window.parent.webglTestHarness) {
window.parent.webglTestHarness.notifyFinished(window.location.pathname);
}
Expand Down

0 comments on commit 12db127

Please sign in to comment.