Commit b02d1cad authored by bsheedy's avatar bsheedy Committed by Commit Bot

Automate VR URL emphasis tests

Automates the VR manual tests for ensuring that file and data URLs
are properly emphasized/colored differently.

Bug: 887613
Change-Id: Id9658f0d0b93febbadb8ba61d54d18324ba2b2bc
Reviewed-on: https://chromium-review.googlesource.com/c/1468022Reviewed-by: default avatarKlaus Weidner <klausw@chromium.org>
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#632039}
parent 9866526d
...@@ -356,4 +356,33 @@ public class VrBrowserNativeUiTest { ...@@ -356,4 +356,33 @@ public class VrBrowserNativeUiTest {
RenderTestUtils.dumpAndCompare(NativeUiUtils.FRAME_BUFFER_SUFFIX_BROWSER_UI, RenderTestUtils.dumpAndCompare(NativeUiUtils.FRAME_BUFFER_SUFFIX_BROWSER_UI,
"page_info_visible_browser_ui", mRenderTestRule); "page_info_visible_browser_ui", mRenderTestRule);
} }
/**
* Tests that data URLs have the data portion of the URL emphasized like in 2D browsing.
*/
@Test
@LargeTest
@Feature({"Browser", "RenderTest"})
public void testDataUrlEmphasis() throws InterruptedException, IOException {
NativeUiUtils.enableMockedInput();
mVrTestRule.loadUrl("data:,Hello%2C%20World!", PAGE_LOAD_TIMEOUT_S);
NativeUiUtils.waitForUiQuiescence();
RenderTestUtils.dumpAndCompare(NativeUiUtils.FRAME_BUFFER_SUFFIX_BROWSER_UI,
"data_url_emphasis_browser_ui", mRenderTestRule);
}
/**
* Tests that file URLs have the entire URL emphasized like in 2D browsing.
*/
@Test
@LargeTest
@Feature({"Browser", "RenderTest"})
public void testFileUrlEmphasis() throws InterruptedException, IOException {
NativeUiUtils.enableMockedInput();
mVrTestRule.loadUrl(VrBrowserTestFramework.getFileUrlForHtmlTestFile("2d_permission_page"),
PAGE_LOAD_TIMEOUT_S);
NativeUiUtils.waitForUiQuiescence();
RenderTestUtils.dumpAndCompare(NativeUiUtils.FRAME_BUFFER_SUFFIX_BROWSER_UI,
"file_url_emphasis_browser_ui", mRenderTestRule);
}
} }
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