| <script src="../../http/tests/inspector/resources/inspector-test.js"></script> |
| let suite = InspectorTest.createAsyncSuite("Page.overrideSetting"); |
| name: "Page.overrideSetting.AdClickAttributionDebugModeEnabled", |
| description: "Test that changing whether ad click attribution debug mode is enabled has an effect.", |
| let listener = WI.consoleManager.addEventListener(WI.ConsoleManager.Event.MessageAdded, (event) => { |
| let {message} = event.data; |
| if (message.source !== WI.ConsoleMessage.MessageSource.AdClickAttribution) |
| InspectorTest.pass("Should broadcast at least one console message."); |
| WI.consoleManager.removeEventListener(WI.ConsoleManager.Event.MessageAdded, listener); |
| InspectorTest.log("Enabling ad click attribution debug mode..."); |
| PageAgent.overrideSetting(InspectorBackend.Enum.Page.Setting.AdClickAttributionDebugModeEnabled, true).catch(reject); |
| suite.runTestCasesAndFinish(); |
| <body onload="runTest()"> |
| <p>Tests for the Page.overrideSetting command.</p> |