Upstream version 5.34.97.0
[platform/framework/web/crosswalk.git] / src / xwalk / test / base / xwalk_test_utils.cc
index 45c9740..2d1af97 100644 (file)
@@ -66,11 +66,8 @@ void NavigateToURL(xwalk::Runtime* runtime, const GURL& url) {
   if (runtime->web_contents()->IsLoading())
     content::WaitForLoadStop(runtime->web_contents());
 
-  TestNavigationObserver navigation_observer(runtime->web_contents(), 1);
   runtime->LoadURL(url);
-
-  base::RunLoop run_loop;
-  navigation_observer.Wait();
+  content::WaitForLoadStop(runtime->web_contents());
 }
 
 }  // namespace xwalk_test_utils