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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/fontface-arraybuffer.html

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: update comment, add TODO Created 3 years, 8 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
Index: third_party/WebKit/LayoutTests/fast/css/fontface-arraybuffer.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/fontface-arraybuffer.html b/third_party/WebKit/LayoutTests/fast/css/fontface-arraybuffer.html
index 1bbcd1ca8eaa93157ef681dcd7cc6e2b8e8b0d34..31457b629b2cabba57576ab22f5b49e9775b9f04 100644
--- a/third_party/WebKit/LayoutTests/fast/css/fontface-arraybuffer.html
+++ b/third_party/WebKit/LayoutTests/fast/css/fontface-arraybuffer.html
@@ -23,6 +23,16 @@ var face2 = new FontFace('FontFromArrayBufferView', uint8View);
shouldBeEqualToString('face2.status', 'loaded');
document.fonts.add(face2);
+if (window.SharedArrayBuffer) {
+ try {
+ new FontFace('FontFromSharedArrayBufferView',
+ new Uint8Array(new SharedArrayBuffer(4)));
+ } catch (e) {
+ rejectionValue = e;
+ shouldBeEqualToString('rejectionValue.name', 'TypeError');
+ }
+}
+
var face3 = new FontFace('FontFromEmptyArrayBuffer', new ArrayBuffer(0));
shouldBeEqualToString('face3.status', 'error');
face3.load().catch(function(v) {

Powered by Google App Engine
This is Rietveld 408576698