packages-exp/auth-compat-exp/test/integration/webdriver/static/persistence.js
// Mock functions for testing edge cases
Mock functions for testing edge cases
Mock functions for testing edge cases
async function makeIndexedDBReadonly() {
  IDBObjectStore.prototype.add = IDBObjectStore.prototype.put = () => {
    return {
      error: 'add/put is disabled for test purposes',
      readyState: 'done',
      addEventListener(event, listener) {
        if (event === 'error') {
          void Promise.resolve({}).then(listener);
        }
      }
    };
  };
}
async function makeIndexedDBReadonly ( ) { IDBObjectStore . prototype . add = IDBObjectStore . prototype . put = ( ) => { return { error : 'add/put is disabled for test purposes' , readyState : 'done' , addEventListener ( event , listener ) { if ( event === 'error' ) { void Promise . resolve ( { } ) . then ( listener ) ; } } } ; } ; }
Mock functions for testing edge cases
Mock functions for testing edge cases