| <script src="../../http/tests/inspector/resources/inspector-test.js"></script> |
| Object.defineProperty(test, "foo", { |
| get() { console.log("FAILURE: Should not fire getter") } |
| let suite = InspectorTest.createAsyncSuite("InjectedScript.GetterInvocation.Preview"); |
| name: "InjectedScript.GetterInvocation.Preview", |
| description: "Getters should not be invoked during object previews.", |
| await InspectorTest.evaluateInPage(`triggerLogs()`); |
| suite.runTestCasesAndFinish(); |
| <body onload="runTest()"> |
| <p>Test that certain InjectedScriptSource operations do not invoke user getters.</p> |