summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/extensions/browser_action_apitest.cc5
-rw-r--r--chrome/test/data/extensions/api_test/browser_action/popup/popup.html10
2 files changed, 10 insertions, 5 deletions
diff --git a/chrome/browser/extensions/browser_action_apitest.cc b/chrome/browser/extensions/browser_action_apitest.cc
index 1ee93bc..e9a970b 100644
--- a/chrome/browser/extensions/browser_action_apitest.cc
+++ b/chrome/browser/extensions/browser_action_apitest.cc
@@ -146,12 +146,11 @@ IN_PROC_BROWSER_TEST_F(BrowserActionApiTest,
}
// http://code.google.com/p/chromium/issues/detail?id=70829
-// Only mac is being actively worked on.
+// Only mac is okay.
#if !defined(OS_MACOSX)
#define MAYBE_BrowserActionPopup DISABLED_BrowserActionPopup
#else
-// http://code.google.com/p/chromium/issues/detail?id=84286
-#define MAYBE_BrowserActionPopup DISABLED_BrowserActionPopup
+#define MAYBE_BrowserActionPopup BrowserActionPopup
#endif
IN_PROC_BROWSER_TEST_F(BrowserActionApiTest, MAYBE_BrowserActionPopup) {
ASSERT_TRUE(LoadExtension(test_data_dir_.AppendASCII(
diff --git a/chrome/test/data/extensions/api_test/browser_action/popup/popup.html b/chrome/test/data/extensions/api_test/browser_action/popup/popup.html
index ccc5ef7..09e14fe 100644
--- a/chrome/test/data/extensions/api_test/browser_action/popup/popup.html
+++ b/chrome/test/data/extensions/api_test/browser_action/popup/popup.html
@@ -1,5 +1,10 @@
<head>
<script>
+function notify_pass() {
+ // We should be done. Let the test harness know.
+ chrome.test.notifyPass();
+}
+
function run_tests() {
// Compute the size of the popup.
var width = 0;
@@ -23,8 +28,9 @@ function run_tests() {
localStorage.height = JSON.stringify(height);
localStorage.width = JSON.stringify(width);
- // We should be done. Let the test harness know.
- chrome.test.notifyPass();
+ // Allow for the pop-up resize to happen (asynchronously)
+ // before saying that the test is done.
+ window.setTimeout(notify_pass, 0);
}
</script>
<style>