Web Inspector: add InspectorTest.expectException() and use it
[WebKit-https.git] / LayoutTests / inspector / unit-tests / test-harness-expect-functions-async-expected.txt
1 Testing asynchronous TestHarness.expect* functions.
2
3
4 == Running test suite: InspectorTest.ExpectFunctions.Async
5 -- Running test case: expectException.WorkIsNotAFunction
6 PASS: Should produce an exception.
7 Error: Invalid argument to catchException: work must be a function.
8
9 -- Running test case: expectException.SyncWorkThatThrowsException
10 PASS: Should produce an exception.
11 Error: A fake exception
12 PASS: Returned promise should be resolved with the expected exception.
13 PASS: Exception should not be altered.
14
15 -- Running test case: expectException.SyncWorkThatDoesNotThrowException
16 The following assertion is expected to fail.
17 FAIL: Should produce an exception.
18     Expected: not null
19     Actual: null
20 PASS: Rejected value should be the returned value.
21
22 -- Running test case: expectException.AsyncWorkThatRejects
23 PASS: Should produce an exception.
24 Error: A fake rejection
25 PASS: Returned promise should be resolved with the expected exception.
26 PASS: Exception should not be altered.
27
28 -- Running test case: expectException.AsyncWorkThatResolves
29 The following assertion is expected to fail.
30 FAIL: Should produce an exception.
31     Expected: not null
32     Actual: null
33 PASS: Should produce an exception.
34 42
35 FAIL: The returned promise should not resolve since an expected exception was not raised.
36