Skip to content

Commit 66362c2

Browse files
committed
Give tests <!DOCTYPE html> so they work correct in browser
1 parent b7d26cf commit 66362c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+69
-0
lines changed

src/tests/browser.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<script src="testing.js"></script>
23
<script id=intl>
34
// this will crash if ICU isn't properly configured / ininitialized

src/tests/crypto.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<script src="testing.js"></script>
23
<script id=crypto>
34
const a = crypto.randomUUID();

src/tests/css.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<script src="testing.js"></script>
23
<script id=support>
34
testing.expectEqual(true, CSS.supports('display: flex'));

src/tests/cssom/css_rule_list.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<script src="../testing.js"></script>
23
<script id=css_rule_list>
34
let list = new CSSRuleList();

src/tests/cssom/css_style_declaration.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<script src="../testing.js"></script>
23
<script id=css_style_declaration>
34
let style = document.createElement('div').style;

src/tests/cssom/css_stylesheet.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<script src="../testing.js"></script>
23
<script id=css_stylesheet>
34
let css = new CSSStyleSheet()

src/tests/dom/animation.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<script src="../testing.js"></script>
23

34
<script id=animation>

src/tests/dom/attribute.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<script src="../testing.js"></script>
23

34
<a id="link" href="foo" class="ok">OK</a>

src/tests/dom/character_data.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<script src="../testing.js"></script>
23

34
<a id="link" href="foo" class="ok">OK</a>

src/tests/dom/comment.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<script src="../testing.js"></script>
23
<script id=comment>
34
let comment = new Comment('foo');

0 commit comments

Comments
 (0)