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

Side by Side Diff: LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-rebase.html

Issue 48903019: Delete js-test-post.js. (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 <script src="../../js/resources/js-test-pre.js"></script> 2 <script src="../../js/resources/js-test-pre.js"></script>
3 <base> 3 <base>
4 <a></a> 4 <a></a>
5 <script> 5 <script>
6 6
7 description('Tests how setting href attributes affects setting a new base for th e URL.'); 7 description('Tests how setting href attributes affects setting a new base for th e URL.');
8 8
9 var base = document.querySelector('base'); 9 var base = document.querySelector('base');
10 var a = document.querySelector('a'); 10 var a = document.querySelector('a');
11 11
12 base.href = 'http://old_base/'; 12 base.href = 'http://old_base/';
13 a.href = 'foo?query'; 13 a.href = 'foo?query';
14 shouldBeEqualToString('a.href', 'http://old_base/foo?query'); 14 shouldBeEqualToString('a.href', 'http://old_base/foo?query');
15 base.href = 'http://new_base/'; 15 base.href = 'http://new_base/';
16 shouldBeEqualToString("document.querySelector('a').href", 'http://new_base/foo?q uery'); 16 shouldBeEqualToString("document.querySelector('a').href", 'http://new_base/foo?q uery');
17 17
18 // Remove @href to allow js-test-post to load. 18 // Remove @href to allow js-test-post to load.
19 base.href = null; 19 base.href = null;
20 20
21 </script> 21 </script>
22 <script src="../../js/resources/js-test-post.js"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698