indexeddbshim / IndexedDBShim

A polyfill for IndexedDB using WebSql
Other
968 stars 191 forks source link

Number of tests run is inconsistent in Chrome #21

Closed pixelcort closed 12 years ago

pixelcort commented 12 years ago

In Chrome 21.0.1180.77, the number of tests run varies each time:

  1. Go to http://nparashuram.com/IndexedDBShim/test/index.html in Chrome
  2. Reload the page over and over again

Expect the number of tests run to remain the same each time.

Got different number of tests run each time, from 123 to 134. (In some cases it would say 0 tests, too.)

pixelcort commented 12 years ago

Safari also sometimes has different numbers of tests run.

axemclion commented 12 years ago

Fixed this, looks like the problem was with get Index - having duplicate value for Indexes. Fixed this. Please verify.

pixelcort commented 12 years ago

Nope, still runs different numbers of tests each time. Did http://nparashuram.com/IndexedDBShim/test/index.html get updated?

axemclion commented 12 years ago

I updated the index tests only - you should see 25 tests running in total -

Screenshot

pixelcort commented 12 years ago

The number of test groups remains consistent at 25, but the number of test that run seems to vary each time.

number varies

axemclion commented 12 years ago

Was due to the way Index and cursor tests were written. Fixed this in c155ec7d597c28549ac5fdaee5883b6b9ec5bfa5

pixelcort commented 12 years ago

On Chrome 22.0.1229.94 (OS X 10.8.2), http://nparashuram.com/IndexedDBShim/test/index.html still results in different numbers of tests being run each time. Sometimes it's as low as 96, other times it's as high as 99.