OLD | NEW |
1 <!-- This tests the agreed upon outcome for https://www.w3.org/Bugs/Public/show_
bug.cgi?id=24652 | 1 <!-- This tests the agreed upon outcome for https://www.w3.org/Bugs/Public/show_
bug.cgi?id=24652 |
2 that has not been reflected in the IDL standard yet due to lack of editing
resources. | 2 that has not been reflected in the IDL standard yet due to lack of editing
resources. |
3 | 3 |
4 TODO: https://github.com/w3c/webcrypto/issues/85 --> | 4 TODO: https://github.com/w3c/webcrypto/issues/85 --> |
5 <!DOCTYPE html> | 5 <!DOCTYPE html> |
6 <meta charset=utf-8> | 6 <meta charset=utf-8> |
7 <title>Current Realm</title> | 7 <title>Current Realm</title> |
8 <script src="/resources/testharness.js"></script> | 8 <script src="/resources/testharness.js"></script> |
9 <script src="/resources/testharnessreport.js"></script> | 9 <script src="/resources/testharnessreport.js"></script> |
10 <div id="log"></div> | 10 <div id="log"></div> |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 obj = CanvasRenderingContext2D.prototype[val[0]].call(c, val[1], val[2],
val[3], val[4]); | 128 obj = CanvasRenderingContext2D.prototype[val[0]].call(c, val[1], val[2],
val[3], val[4]); |
129 assert_global(obj) | 129 assert_global(obj) |
130 assert_global(obj.data) | 130 assert_global(obj.data) |
131 }, val[0]) | 131 }, val[0]) |
132 }) | 132 }) |
133 | 133 |
134 test(function() { | 134 test(function() { |
135 var c = new self[0].FontFace("test", "about:blank"), | 135 var c = new self[0].FontFace("test", "about:blank"), |
136 obj = c.load() | 136 obj = c.load() |
| 137 obj.catch(function(reason) { |
| 138 // Ignore exception when it fails to load because the URL is invalid. |
| 139 }); |
137 assert_global(obj) | 140 assert_global(obj) |
138 | 141 |
139 obj = FontFace.prototype.load.call(c) | 142 obj = FontFace.prototype.load.call(c) |
140 assert_global(obj) | 143 assert_global(obj) |
141 }, "FontFace's load()") | 144 }, "FontFace's load()") |
142 | 145 |
143 done() | 146 done() |
144 } | 147 } |
145 </script> | 148 </script> |
OLD | NEW |