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

Side by Side Diff: LayoutTests/http/tests/navigation/resources/frame-with-anchor.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../js-test-resources/js-test-pre.js"></script> 4 <script src="../../../js-test-resources/js-test.js"></script>
5 <script> 5 <script>
6 function runTest() { 6 function runTest() {
7 description('Tests that loading a frame with a URL that contains a fragmen t pointed at a named anchor actually scrolls to that anchor.'); 7 description('Tests that loading a frame with a URL that contains a fragmen t pointed at a named anchor actually scrolls to that anchor.');
8 8
9 // Check scroll position in a timeout to make sure that the anchor has 9 // Check scroll position in a timeout to make sure that the anchor has
10 // been scrolled to. 10 // been scrolled to.
11 setTimeout(function() { 11 setTimeout(function() {
12 // Make sure that the body is taller than the viewport (i.e. scrolling is 12 // Make sure that the body is taller than the viewport (i.e. scrolling is
13 // required). 13 // required).
14 shouldBeTrue('document.documentElement.offsetHeight > document.documen tElement.clientHeight'); 14 shouldBeTrue('document.documentElement.offsetHeight > document.documen tElement.clientHeight');
(...skipping 15 matching lines...) Expand all
30 <p id="description"></p> 30 <p id="description"></p>
31 <div id="console"></div> 31 <div id="console"></div>
32 32
33 <div style="height: 2000px"> 33 <div style="height: 2000px">
34 <!-- Spacer to make sure that the named anchor below requires scrolling --> 34 <!-- Spacer to make sure that the named anchor below requires scrolling -->
35 </div> 35 </div>
36 36
37 <a name="anchor1">This is an anchor point named "anchor1</a>. 37 <a name="anchor1">This is an anchor point named "anchor1</a>.
38 </body> 38 </body>
39 </html> 39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698