• Robert Knight's avatar
    Relax call count check in `FrameObserver` tests · eeba7ec5
    Robert Knight authored
    An `onDocumentReady` test was failing in current versions of Chrome, with the
    callback being invoked twice with the same error instead of once. This can happen
    with this sequence of events:
    
     1. Watched frame fires an "unload" event. This starts a polling timer.
     2. The timer fires and the callback is invoked with a cross-origin error
     3. Frame fires "load" event, and the callback is invoked a second time with
        a cross-origin error
     4. The test's "load" event handler is run
    
    It is not a problem for current callers of `onDocumentReady` if the callback
    fires twice, so just relax the check in the tests.
    eeba7ec5
Name
Last commit
Last update
..
annotator Loading commit data...
boot Loading commit data...
images/icons Loading commit data...
shared Loading commit data...
sidebar Loading commit data...
styles Loading commit data...
test-util Loading commit data...
types Loading commit data...
karma.config.cjs Loading commit data...
tsconfig.json Loading commit data...