@seanox/aspect-js
Version:
full stack JavaScript framework for SPAs incl. reactivity rendering, mvc / mvvm, models, expression language, datasource, virtual paths, unit test and some more
226 lines (223 loc) • 4.7 kB
HTML
<!DOCTYPE HTML>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Seanox aspect-js test environment</title>
<style>
body {
font-family: monospace;
white-space: pre;
}
</style>
<script src="aspect-js.js"></script>
<script src="scripts/capture.js"></script>
<script type="text/javascript">
Test.activate();
const capture = new Capture();
Composite.listen(Composite.EVENT_RENDER_END, () => {
capture.snap();
const count = capture.patterns().length;
if (capture.size() === count)
Test.start();
if (capture.size() > count)
Assert.assertEquals("expected {1} steps but was {2}", count, capture.size());
});
Test.create({test() {
capture.validate();
}});
</script>
<script type="text/test">
A: _10000_
C: _20000_
F: _30000_
x: _object_
Y: _object_
A-a vs. X-a: -2- vs. -2-
A-a: -2-
X-a: -2-
</script>
<script type="text/test">
A: _10000_
C: _20000_
F: _30000_
x: _object_
Y: _object_
A-a vs. X-a: A vs. A
A-a: -2-
X-a: -2-
</script>
<script type="text/test">
A: _10000_
C: _20000_
F: _30000_
x: _object_
Y: _object_
A-a vs. X-a: A vs. A
A-a: A
X-a: -2-
</script>
<script type="text/test">
A: _10000_
C: _20000_
F: _30000_
x: _object_
Y: _object_
A-a vs. X-a: A vs. A
A-a: A
X-a: -2-
</script>
<script type="text/test">
A: _10001_
C: _20000_
F: _30000_
x: _object_
Y: _object_
A-a vs. X-a: A vs. A
A-a: A
X-a: -2-
</script>
<script type="text/test">
A: _10001_
C: _20000_
F: _30000_
x: _object_
Y: _object_
A-a vs. X-a: A vs. A
A-a: A
X-a: -2-
</script>
<script type="text/test">
A: _10002_
C: _20000_
F: _30000_
x: _object_
Y: _object_
A-a vs. X-a: A vs. A
A-a: A
X-a: -2-
</script>
<script type="text/test">
A: _10002_
C: _20000_
F: _30000_
x: _object_
Y: _object_
A-a vs. X-a: A vs. A
A-a: A
X-a: -2-
</script>
<script type="text/test">
A: _10003_
C: _20000_
F: _30000_
x: _object_
Y: _object_
A-a vs. X-a: A vs. A
A-a: A
X-a: -2-
</script>
<script type="text/test">
A: _10003_
C: _20000_
F: _30000_
x: _object_
Y: _object_
A-a vs. X-a: A vs. A
A-a: A
X-a: -2-
</script>
<script type="text/test">
A: _10003_
C: _20010_
F: _30000_
x: _object_
Y: _object_
A-a vs. X-a: A vs. A
A-a: A
X-a: -2-
</script>
<script type="text/test">
A: _10003_
C: _20020_
F: _30000_
x: _object_
Y: _object_
A-a vs. X-a: A vs. A
A-a: A
X-a: -2-
</script>
<script type="text/test">
A: _10003_
C: _20030_
F: _30000_
x: _object_
Y: _object_
A-a vs. X-a: A vs. A
A-a: A
X-a: -2-
</script>
<script type="text/test">
A: _10003_
C: _20030_
F: _30100_
x: _object_
Y: _object_
A-a vs. X-a: A vs. A
A-a: A
X-a: -2-
</script>
<script type="text/test">
A: _10003_
C: _20030_
F: _30200_
x: _object_
Y: _object_
A-a vs. X-a: A vs. A
A-a: A
X-a: -2-
</script>
<script type="text/test">
A: _10003_
C: _20030_
F: _30300_
x: _object_
Y: _object_
A-a vs. X-a: A vs. A
A-a: A
X-a: -2-
</script>
<script type="text/test">
A: _10003_
C: _20030_
F: _30300_
x: _object_
Y: _object_
A-a vs. X-a: C vs. C
A-a: A
X-a: -2-
</script>
<script type="text/test">
A: _10003_
C: _20030_
F: _30300_
x: _object_
Y: _object_
A-a vs. X-a: C vs. C
A-a: C
X-a: -2-
</script>
<script type="text/test">
A: _10003_
C: _20030_
F: _30300_
x: _object_
Y: _object_
A-a vs. X-a: C vs. C
A-a: C
X-a: -2-
</script>
<head>
<body>
<div id="reactiveA" composite/>
</body>
</html>