Skip to content

Commit

Permalink
Wrap a stray assert (causing harness error) in a test
Browse files Browse the repository at this point in the history
Found via #10877 (comment).
  • Loading branch information
foolip committed Aug 3, 2018
1 parent 1413fe6 commit 5c627e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions priority-hints/img-attr-named-constructor.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
assert_equals(img5.importance, "auto", "missing importance reflects as 'auto' IDL attribute on the image element");
}, "importance attribute on <img> elements should reflect valid IDL values");

const img = new Image();
assert_equals(img.importance, "auto");
test(() => {
const img = new Image();
assert_equals(img.importance, "auto");
}, "importance of new Image() is 'auto'");
</script>

0 comments on commit 5c627e5

Please sign in to comment.