Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(658)

Unified Diff: chrome/test/data/extensions/api_test/tabs/on_updated/locationReplace/a.js

Issue 1156043002: chrome.tabs.onUpdated doesn't called with 'loading' twice. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/tabs/on_updated/locationReplace/a.js
diff --git a/tools/clang/plugins/tests/warn_only.cpp b/chrome/test/data/extensions/api_test/tabs/on_updated/locationReplace/a.js
similarity index 52%
copy from tools/clang/plugins/tests/warn_only.cpp
copy to chrome/test/data/extensions/api_test/tabs/on_updated/locationReplace/a.js
index 1fbefcb105b911baaafd4b1753353f3e35d3e319..bf0d97d5b7d7d90371d47a99a27bc09220417b66 100644
--- a/tools/clang/plugins/tests/warn_only.cpp
+++ b/chrome/test/data/extensions/api_test/tabs/on_updated/locationReplace/a.js
@@ -2,4 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "warn_only.h"
+window.onload = function() {
+ // 'load' and 'complete' are fired with the URL update.
+ setTimeout(function() {
+ location.replace("#foo");
+ }, 0);
+}

Powered by Google App Engine
This is Rietveld 408576698