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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/document-metadata/the-base-element/base_href_specified.html

Issue 2446483002: Import wpt@c5a14f553cba5f197743b9af605a84eddd8692a2 (Closed)
Patch Set: Created 4 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>HTML Test: base_href_specified</title>
4 <link rel="author" title="Intel" href="http://www.intel.com/">
5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-base-element" >
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8 <script src="/common/get-host-info.sub.js"></script>
9 <base id="base">
10 <div id="log"></div>
11 <img id="test" src="test.ico" style="display:none">
12
13 <script>
14 var testElement;
15 var baseElement;
16
17 var otherOrigin = get_host_info().HTTP_REMOTE_ORIGIN;
18
19 setup(function() {
20 testElement = document.getElementById("test");
21 baseElement = document.getElementById("base");
22
23 baseElement.setAttribute("href", otherOrigin);
24 });
25
26 test(function() {
27 assert_equals(baseElement.href, otherOrigin + "/", "The href attribute of th e base element is incorrect.");
28 }, "The href attribute of the base element is specified");
29
30 test(function() {
31 assert_equals(testElement.src, otherOrigin + "/test.ico", "The src attribute of the img element is incorrect.");
32 }, "The src attribute of the img element must relative to the href attribute o f the base element");
33 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698