Skip to content

Commit

Permalink
converted some encoding tests to use any.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Amal Hussein authored and jdm committed Jul 12, 2018
1 parent 12b30f5 commit dfa045c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
@@ -1,10 +1,7 @@
<!DOCTYPE html>
<title>Encoding API: invalid label</title>
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/encodings.js"></script>
<script>
// META: title=Encoding API: invalid label
// META: timeout=long
// META: script=resources/encodings.js

var tests = ["invalid-invalidLabel"];
setup(function() {
encodings_table.forEach(function(section) {
Expand All @@ -25,4 +22,3 @@
assert_throws(new RangeError(), function() { new TextDecoder(input); });
}, 'Invalid label ' + format_value(input) + ' should be rejected by TextDecoder.');
});
</script>
@@ -1,10 +1,6 @@
<!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 src="resources/decoding-helpers.js"></script>
<script>
// META: title=Encoding API: replacement encoding
// META: script=resources/encodings.js
// META: script=resources/decoding-helpers.js

const replacement_labels = [];
encodings_table.forEach(section => {
Expand All @@ -27,4 +23,3 @@
'',
'', `${label} - empty input decodes to empty output.`);
});
</script>

0 comments on commit dfa045c

Please sign in to comment.