Skip to content

Commit

Permalink
Fix resources path in lazy load tests
Browse files Browse the repository at this point in the history
When moving lazy load tests to html/semantics/embedded-content/the-img-element
the internal resources paths were not adjusted, so do it in this change.
  • Loading branch information
rwlbuis committed Feb 17, 2020
1 parent 70efafb commit 0ffd351
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
Expand Up @@ -13,7 +13,8 @@
promise_test(async t => {
iframe.src =
get_host_info().HTTP_NOTSAMESITE_ORIGIN +
"/loading/lazyload/resources/image-loading-lazy-below-viewport-iframe.html";
new URL("resources/", self.location).pathname +
"image-loading-lazy-below-viewport-iframe.html";

let image_loaded = false;

Expand Down
Expand Up @@ -14,7 +14,8 @@
promise_test(async t => {
iframe.src =
get_host_info().HTTP_NOTSAMESITE_ORIGIN +
"/loading/lazyload/resources/image-loading-lazy-in-viewport-iframe.html";
new URL("resources/", self.location).pathname +
"image-loading-lazy-in-viewport-iframe.html";

let image_loaded = false;

Expand Down
Expand Up @@ -6,7 +6,7 @@
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="common.js"></script>
<base href='/loading/lazyload/resources/'>
<base href='/html/semantics/embedded-content/the-img-element/resources/'>
</head>

<script>
Expand Down
Expand Up @@ -6,7 +6,7 @@
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="common.js"></script>
<base href='/loading/lazyload/resources/'>
<base href='/html/semantics/embedded-content/the-img-element/resources/'>
</head>

<script>
Expand Down
Expand Up @@ -37,6 +37,6 @@
<body>
<div style="height:10000px;"></div>
<img id="crossorigin_img" loading="lazy"
src='http://{{hosts[alt][www]}}:{{ports[http][0]}}/loading/lazyload/resources/image.png'
src='http://{{hosts[alt][www]}}:{{ports[http][0]}}/html/semantics/embedded-content/the-img-element/resources/image.png'
onload="crossorigin_img.resolve();" onerror="crossorigin_img.reject();">
</body>

0 comments on commit 0ffd351

Please sign in to comment.