Index: chrome/browser/policy/policy_browsertest.cc |
=================================================================== |
--- chrome/browser/policy/policy_browsertest.cc (revision 183252) |
+++ chrome/browser/policy/policy_browsertest.cc (working copy) |
@@ -240,14 +240,11 @@ |
EXPECT_EQ(title, contents->GetTitle()); |
// Verify that the expected error page is being displayed. |
- // (error 138 == NETWORK_ACCESS_DENIED) |
bool result = false; |
EXPECT_TRUE(content::ExecuteScriptAndExtractBool( |
contents, |
- "var hasError = false;" |
- "var error = document.getElementById('errorDetails');" |
- "if (error)" |
- " hasError = error.textContent.indexOf('Error 138') == 0;" |
+ "var textContent = document.body.textContent;" |
+ "var hasError = textContent.indexOf('NETWORK_ACCESS_DENIED') != -1;" |
"domAutomationController.send(hasError);", |
&result)); |
EXPECT_TRUE(result); |