Skip to content

Commit

Permalink
Generalized test
Browse files Browse the repository at this point in the history
  • Loading branch information
mariestaver authored and jdm committed Jul 12, 2018
1 parent e44b8b3 commit 12b30f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
8 changes: 1 addition & 7 deletions encoding/api-basics.html → encoding/api-basics.any.js
@@ -1,8 +1,4 @@
<!DOCTYPE html>
<title>Encoding API: Basics</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
// META: title=Encoding API: Basics

test(function() {
assert_equals((new TextEncoder).encoding, 'utf-8', 'default encoding is utf-8');
Expand Down Expand Up @@ -54,5 +50,3 @@
sample,
[0x7A, 0x00, 0xA2, 0x00, 0x34, 0x6C, 0x34, 0xD8, 0x1E, 0xDD, 0xFF, 0xF8, 0xFF, 0xDB, 0xFD, 0xDF, 0xFE, 0xFF]
);

</script>
@@ -1,9 +1,5 @@
<!DOCTYPE html>
<title>Encoding API: replacement encoding</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/encodings.js"></script>
<script>
// META: title=Encoding API: replacement encoding
// META: script=resources/encodings.js

encodings_table.forEach(function(section) {
section.encodings.filter(function(encoding) {
Expand All @@ -17,4 +13,3 @@
});
});

</script>

0 comments on commit 12b30f5

Please sign in to comment.