Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / js / xpconnect / tests / unit / test_fileReader.js
blobea86096319e3ec5240c8ebf24ad337f83adfb2ab
1 /* Any copyright is dedicated to the Public Domain.
2  * http://creativecommons.org/publicdomain/zero/1.0/ */
4 function run_test() {
5   var sb = new Cu.Sandbox('http://www.example.com',
6                           { wantGlobalProperties: ["FileReader"] });
7   sb.ok = ok;
8   Cu.evalInSandbox('ok((new FileReader()) instanceof FileReader);',
9                    sb);
10   Cu.importGlobalProperties(["FileReader"]);
11   Assert.ok((new FileReader()) instanceof FileReader);