Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: LayoutTests/fast/encoding/api/fatal-flag.html

Issue 292243003: Encoding API: Expose 'fatal' and 'ignoreBOM' readonly attributes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Regen test results Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/encoding/api/fatal-flag-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/encoding/api/fatal-flag.html
diff --git a/LayoutTests/fast/encoding/api/fatal-flag.html b/LayoutTests/fast/encoding/api/fatal-flag.html
index f0a7b76fbd14dbb395df75719ebffa92150f4753..96008917ed5b3a16c7585c91a15e51f9300f8e4a 100644
--- a/LayoutTests/fast/encoding/api/fatal-flag.html
+++ b/LayoutTests/fast/encoding/api/fatal-flag.html
@@ -62,4 +62,12 @@ bad.forEach(function(t) {
}, 'Fatal flag: ' + t.encoding + ' - ' + t.name);
});
+test(function() {
+ assert_true('fatal' in new TextDecoder(), 'The fatal attribute should exist on TextDecoder.');
+ assert_equals(typeof new TextDecoder().fatal, 'boolean', 'The type of the fatal attribute should be boolean.');
+ assert_false(new TextDecoder().fatal, 'The fatal attribute should default to false.');
+ assert_true(new TextDecoder('utf-8', {fatal: true}).fatal, 'The fatal attribute can be set using an option.');
+
+}, 'The fatal attribute of TextDecoder');
+
</script>
« no previous file with comments | « no previous file | LayoutTests/fast/encoding/api/fatal-flag-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698