News for hackers. Stuff that matters.
Re:IndexedDB is completely broken in latest Safari by andrewmcwatters on Tuesday June 15, 2021 @01:12AM (#27511564)
Yes, I am. I'm an implementor. Some of the most fundamental parts of the web don't have comprehensive test suites. IndexedDB is relatively much more modern.

However, if you do stumble on some tests for basic things like the box model, I'd love to know where they are! Tests like those would allow other vendors to know whether or not they're adhering to specification, programmatically.

Earlier standards are very descriptive, rather than telling you how to implement the actual web technologies. That's left as an exercise for the reader. Seriously!

Re:IndexedDB is completely broken in latest Safari by hu3 on Tuesday June 15, 2021 @01:19AM (#27511599)
Interesting. This makes it even more bafling to me that Safari doesn't have basic unit tests for a modern feature such as IndexedDb. It's certainly not for a lack of funds.

I guess applications living in the browser don't align well with Apple's interest in pushing their app store.

Re:IndexedDB is completely broken in latest Safari by andrewmcwatters on Tuesday June 15, 2021 @01:23AM (#27511625)
A part of it is interest, too. Simply because there is a exceedingly small number of vendors, building comprehensive test suites that benefit newcomers is just not in most organizations' best interests.

There actually are some partial tests from the W3C regarding basic web technologies, but they're not really automated ones in the way you'd think.

Re:IndexedDB is completely broken in latest Safari by shawnz on Tuesday June 15, 2021 @01:41AM (#27511715)
I don't think the other poster was talking about automated tests for conformance to the specification, just basic unit tests indicating that the feature works at all by any reasonable definition.
Re:IndexedDB is completely broken in latest Safari by lostmsu on Tuesday June 15, 2021 @02:26AM (#27511964)
That kind of an issue is generally tested against by integration tests. Depending on the root cause unit tests for the entry point code might not have caught it.
Re:IndexedDB is completely broken in latest Safari by shawnz on Tuesday June 15, 2021 @08:53AM (#27514592)
You are right, an integration test would probably be better for demonstrating that this feature works.

I only mean to say that you don't need a whole compliance testing suite to catch a major bug like this.

Re:IndexedDB is completely broken in latest Safari by onion2k on Tuesday June 15, 2021 @01:46AM (#27511743)
However, if you do stumble on some tests for basic things like the box model, I'd love to know where they are!

Its not really a test suite, but back in the early days of CSS we had https://en.m.wikipedia.org/wiki/Acid2 It'd be easy to write a set of tests based on Acid2.

There's also https://en.m.wikipedia.org/wiki/Acid3 but that doesn't quite test things 'properly'.

Re:IndexedDB is completely broken in latest Safari by andrewmcwatters on Tuesday June 15, 2021 @01:59AM (#27511813)
Yes, I fondly remember the Acid tests. Unfortunately, they aren’t very useful for implementors as they don’t cover the entire breadth of the specifications in isolation.

In addition the specs have changed somewhat so now CSS 2.1 and the modules that existed at that point in time have matured beyond what the tests were written for, so a browser matching the spec today would fail.

They were very fun for end users to see whether or not a browser was in compliance, though!

Re:IndexedDB is completely broken in latest Safari by exikyut on Tuesday June 15, 2021 @03:36AM (#27512379)
I wonder if the path of least resistance would be to slowly convince the people that like writing Acid* tests to take things up a notch and rearchitect the next version(s) so that success is a measurement of collective+isolated implementational correctness.

Such an effort would probably involve a higher level of ongoing support from the vendor side of the fence (in terms of motivation and iterative discussion etc), but relative to other options might be, as I said, the path of least resistance.

</armchair_idea>