Index: chrome/test/data/extensions/api_test/tabs/on_updated/historyReplaceStateUpdateUrl/a.js |
diff --git a/chrome/test/data/extensions/api_test/tabs/on_updated/historyReplaceStateUpdateUrl/a.js b/chrome/test/data/extensions/api_test/tabs/on_updated/historyReplaceStateUpdateUrl/a.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a76105db6b8fbaac1a3ef9dd0b4c3ffc9224dce0 |
--- /dev/null |
+++ b/chrome/test/data/extensions/api_test/tabs/on_updated/historyReplaceStateUpdateUrl/a.js |
@@ -0,0 +1,10 @@ |
+// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+window.onload = function() { |
+ // 'tabs.onUpdate()' is not fired with a updated 'url'. |
+ setTimeout(function() { |
+ history.replaceState(null, null, "#a"); |
+ }, 0); |
+} |