Commit ea7cb15b authored by bsheedy's avatar bsheedy Committed by Commit bot

Correct misnamed WebVR event in tests

Tests were incorrectly using/referring to 'onvrdisplayactivate' and
'onvrdisplaypresentchange' instead of 'vrdisplayactivate' and
'vrdisplaypresentchange'.

BUG=

Review-Url: https://codereview.chromium.org/2750763006
Cr-Commit-Position: refs/heads/master@{#457460}
parent 2feaa058
......@@ -233,12 +233,12 @@ public class WebVrTest extends ChromeTabbedActivityTestBase {
/**
* Tests that scanning the Daydream View NFC tag on supported devices
* fires the onvrdisplayactivate event.
* fires the vrdisplayactivate event.
*/
@SmallTest
@Restriction(RESTRICTION_TYPE_DAYDREAM_VIEW)
public void testNfcFiresOnvrdisplayactivate() throws InterruptedException {
String testName = "test_nfc_fires_onvrdisplayactivate";
public void testNfcFiresVrdisplayactivate() throws InterruptedException {
String testName = "test_nfc_fires_vrdisplayactivate";
loadUrl(getHtmlTestFile(testName), 10);
simNfcScanAndWait(mWebContents);
endTest(mWebContents);
......
<!doctype html>
<!--
Tests that scanning the Daydream View NFC tag on supported devices fires the
ondisplayactivate event
vrdisplayactivate event
-->
<html>
<head>
......
......@@ -13,7 +13,7 @@ Tests that requestPresent actually enters VR from Chrome's view
<script src="../resources/webvr_boilerplate.js"></script>
<script>
var t = async_test("A successful requestPresent call actually enters VR");
window.addEventListener("onvrdisplaypresentchange", () => {t.done();}, false);
window.addEventListener("vrdisplaypresentchange", () => {t.done();}, false);
</script>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment