summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/update-the-image-data/fail-to-resolve.html
blob: 959ceaa9793d1c1d74482e688db7ad07a93fe336 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!doctype html>
<title>img update the image data: fail to resolve URL</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>

<img src="//[">
<img srcset="//[">
<img srcset="//[" src="/images/red.png">
<img srcset="//[, /images/red.png">

<script>
setup({explicit_done: true});

var expected = '//[';

onload = function() {
  [].forEach.call(document.images, function(img) {
    test(function() {
      assert_equals(img.currentSrc, expected);
    }, img.outerHTML);
  });
  done();
};
</script>