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

Unified Diff: chrome/test/data/extensions/api_test/tabs/on_updated/internalAnchorNavigated/a.html

Issue 2111010: fix chrome.tabs.onUpdated bugs, add browsertest (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: more cr changes Created 10 years, 7 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/internalAnchorNavigated/a.html
diff --git a/chrome/test/data/extensions/api_test/tabs/on_updated/internalAnchorNavigated/a.html b/chrome/test/data/extensions/api_test/tabs/on_updated/internalAnchorNavigated/a.html
new file mode 100644
index 0000000000000000000000000000000000000000..ef2b1eff8380325e5a61133391de3cb43fc95db7
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/tabs/on_updated/internalAnchorNavigated/a.html
@@ -0,0 +1,14 @@
+<h1>Internal Anchor</h1>
+
+<a href="#b">b</a>
+<div style="height: 1600px">---SPACE---</div>
+<h2 id="b">B Content</h2>
+
+<script>
+window.onload = function() {
+ // Navigate after the onload, so the 'complete' status will fire.
+ setTimeout(function() {
+ location.href = "#b";
+ }, 0);
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698