Cherry-pick: Use getAssetUrl() to access files present in assets folder from master. 

BUG: 10921916

Use getAssetUrl() to access files present in assets folder

In testFocusNodeHRef functions, data path was set to "webkit/*.html".
Files are available in /assets/webkit/*.html.
Modified the Url path to send Absolute path.

Issue: AXIA-1227

Change-Id: I727234230a40841faa2ffd42c44bd1dd9f5fc284
AOSP-Change-Id: I53997a66cbc8ca389d1d879e3b68007497c7d172
Orig-Change-Id: I3ee5630ebd20de882c80429b9ceadaca5747405b
Author: sharada <sharadax.palasamudram.ashok.kumar@intel.com>
Signed-off-by: sharada <sharadax.palasamudram.ashok.kumar@intel.com>
Signed-off-by: xubing <binx.xu@intel.com>
(cherry picked from commit 5269395976ec28cc6818eb3d801afae8076f0a63)
diff --git a/tests/tests/webkit/src/android/webkit/cts/WebViewTest.java b/tests/tests/webkit/src/android/webkit/cts/WebViewTest.java
index 3f7ea78..1814ed4 100755
--- a/tests/tests/webkit/src/android/webkit/cts/WebViewTest.java
+++ b/tests/tests/webkit/src/android/webkit/cts/WebViewTest.java
@@ -1104,8 +1104,11 @@
     }
 
     public void testRequestFocusNodeHref() throws Throwable {
-        final String links = "<DL><p><DT><A HREF=\"" + TestHtmlConstants.HTML_URL1
-                + "\">HTML_URL1</A><DT><A HREF=\"" + TestHtmlConstants.HTML_URL2
+        startWebServer(false);
+        String url1 = mWebServer.getAssetUrl(TestHtmlConstants.HTML_URL1);
+        String url2 = mWebServer.getAssetUrl(TestHtmlConstants.HTML_URL2);
+        final String links = "<DL><p><DT><A HREF=\"" + url1
+                + "\">HTML_URL1</A><DT><A HREF=\"" + url2
                 + "\">HTML_URL2</A></DL><p>";
         mOnUiThread.loadDataAndWaitForCompletion("<html><body>" + links + "</body></html>", "text/html", null);
         getInstrumentation().waitForIdleSync();
@@ -1135,7 +1138,7 @@
                 return done;
             }
         }.run();
-        assertEquals(TestHtmlConstants.HTML_URL1, handler.getResultUrl());
+        assertEquals(url1, handler.getResultUrl());
 
         // focus on second link
         handler.reset();
@@ -1147,9 +1150,10 @@
             @Override
             protected boolean check() {
                 boolean done = false;
+                final String url2 = mWebServer.getAssetUrl(TestHtmlConstants.HTML_URL2);
                 if (handler.hasCalledHandleMessage()) {
                     if (handler.mResultUrl != null &&
-                            handler.mResultUrl.equals(TestHtmlConstants.HTML_URL2)) {
+                            handler.mResultUrl.equals(url2)) {
                         done = true;
                     } else {
                         handler.reset();
@@ -1161,7 +1165,7 @@
                 return done;
             }
         }.run();
-        assertEquals(TestHtmlConstants.HTML_URL2, handler.getResultUrl());
+        assertEquals(url2, handler.getResultUrl());
 
         mOnUiThread.requestFocusNodeHref(null);
     }