Skip to content

Commit

Permalink
Bug 1622804 [wpt PR 22276] - [encoding] Tests for BOM detection., a=t…
Browse files Browse the repository at this point in the history
…estonly

Automatic update from web-platform-tests
Encoding: BOM detection

For whatwg/html#5359.
--

wpt-commits: 7d9b5a5facaf0b9d986e63e0a031983899d30c79
wpt-pr: 22276

UltraBlame original commit: ed0a5ea70a1f04bdad4e54f7dfc89ed9e067fe7a
  • Loading branch information
marco-c committed Mar 23, 2020
1 parent 5d4423d commit 9d9c199
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 0 deletions.
106 changes: 106 additions & 0 deletions testing/web-platform/tests/encoding/bom-handling.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<
!
doctype
html
>
<
meta
charset
=
"
windows
-
1252
"
>
<
script
src
=
/
resources
/
testharness
.
js
>
<
/
script
>
<
script
src
=
/
resources
/
testharnessreport
.
js
>
<
/
script
>
<
title
>
BOM
handling
<
/
title
>
<
div
id
=
log
>
<
/
div
>
<
script
>
test
(
(
)
=
>
{
assert_equals
(
document
.
characterSet
.
toLowerCase
(
)
"
utf
-
8
"
)
;
}
"
document
.
characterSet
should
match
the
BOM
"
)
;
<
/
script
>
13 changes: 13 additions & 0 deletions testing/web-platform/tests/encoding/bom-handling.html.headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Content
-
Type
:
text
/
html
;
charset
=
windows
-
1252

0 comments on commit 9d9c199

Please sign in to comment.