Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / serviceworker / rejections.html
blob2631f35274771a8d0ba38430db25fe1844bb9ee0
1 <!DOCTYPE html>
2 <title>Service Worker: Rejection Types</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script>
7 (function() {
8 var t = async_test('Rejections are DOMExceptions');
9 t.step(function() {
11 navigator.serviceWorker.register('http://example.com').then(
12 t.step_func(function() { assert_unreached('Registration should fail'); }),
13 t.step_func(function(reason) {
14 assert_true(reason instanceof DOMException);
15 assert_true(reason instanceof Error);
16 t.done();
17 }));
18 });
19 }());
21 </script>