blob: e94c99427adb5e4e8b4eb648e76de93fff06ad58 [file] [edit]
<!doctype html><!-- webkit-test-runner [ IPCTestingAPIEnabled=true ] -->
<title>Test that isAsyncReply is correctly exposed to the IPCTestingAPI</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="../resources/ipc.js"></script>
<body>
<p>Test pass if assertions don't cause error</p>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
if (window.IPC) {
assert_equals(IPC.messages.IPCTester_AsyncOptionalExceptionData.isAsyncReply, false);
assert_equals(IPC.messages.IPCTester_AsyncOptionalExceptionDataReply.isAsyncReply, true);
assert_equals(IPC.messages.WebPageTesting_IsLayerTreeFrozen.isAsyncReply, false);
assert_equals(IPC.messages.WebPageTesting_IsLayerTreeFrozenReply.isAsyncReply, true);
assert_equals(IPC.messages.WebPageProxy_DecidePolicyForNavigationActionAsync.isAsyncReply, false);
assert_equals(IPC.messages.WebPageProxy_DecidePolicyForNavigationActionAsyncReply.isAsyncReply, true);
assert_equals(IPC.messages.RemoteMediaResourceLoader_ResponseReceived.isAsyncReply, false);
assert_equals(IPC.messages.RemoteMediaResourceLoader_ResponseReceivedReply.isAsyncReply, true);
}
document.write("PASS");
testRunner.notifyDone();
</script>
</body>