mavoweb / test Goto Github PK
View Code? Open in Web Editor NEWUnit tests for Mavo
Unit tests for Mavo
This would help make many manual reftests automatic.
Requirements:
<tr>
s).Potential syntax:
data-click=".mv-bar .mv-save wait 5s after mv-load"
data-click=".mv-bar .mv-save wait 3s"
(no event, DOMContentLoaded assumed)
data-click="wait 1s after load"
(no selector, element assumed)
So I was fixing the "bug" with binaryOperation()
, and made changes so that new and old tests passed, except one:
This doesn't really make sense to me because and()
and the contains()
I'm implementing now are similar in that they both return booleans. We already established that the contains()
function should only return booleans and instead of adding unprocessed array items into the return array. Yet here, the expected result of the and()
does the exact thing that we decided is not right.
Should this be fixed or is there a difference between and()
and contains()
in terms of what they should return that I'm missing here?
I was trying to figure out what caused this regression and I realized this would be incredibly useful: A setting to use an older version of Mavo in the tests.
Not sure yet if this can be generalized into an htest feature, or if we should implement it here. I suspect it's simpler to implement it here and figure out if/how to generalize later.
An easy but dirty way to implement this is to use a URL param (?version=v0.2.0
) and document.write()
to output a <script>
element with the correct URL. The downside is we'd need to do this on every single tests page. Maybe it's time to move htest to 11ty?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.