diff --git a/mobile/chrome/tests/browser_navigation.js b/mobile/chrome/tests/browser_navigation.js index ce764e1f9c9..492f2328424 100644 --- a/mobile/chrome/tests/browser_navigation.js +++ b/mobile/chrome/tests/browser_navigation.js @@ -129,11 +129,11 @@ gTests.push({ } waitFor(function() { - is(BrowserUI._edit.value, testURL_02, "URL value should be equal to the string sent via synthesizeString"); - EventUtils.synthesizeKey("VK_RETURN", {}, window); - // Wait for the tab to load, then do the test waitFor(gCurrentTest.onPageFinish, pageLoaded(testURL_02)); + + is(BrowserUI._edit.value, testURL_02, "URL value should be equal to the string sent via synthesizeString"); + EventUtils.synthesizeKey("VK_RETURN", {}, window); }, URLIsReadWrite); },