@seanox/aspect-js
Version:
full stack JavaScript framework for SPAs incl. reactivity rendering, mvc / mvvm, models, expression language, datasource, routing, paths, unit test and some more
65 lines (61 loc) • 2.04 kB
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 type="text/javascript">
Test.activate();
Test.create({expected:/\bInvalid scope: undefined/i, test() {
Composite.customize();
}});
Test.create({expected:/\bInvalid scope: object/i, test() {
Composite.customize(null);
}});
Test.create({expected:/\bInvalid scope/i, test() {
Composite.customize("");
}});
Test.create({expected:/\bInvalid callback: string/i, test() {
Composite.customize("", "");
}});
Test.create({expected:/\bInvalid scope/i, test() {
Composite.customize("", null);
}});
Test.create({expected:/\bInvalid scope: object/i, test() {
Composite.customize(new Object(), () => {});
}});
Test.create({expected:/\bInvalid scope: object/i, test() {
Composite.customize({}, () => {});
}});
Test.create({expected:/\bInvalid scope: function/i, test() {
Composite.customize(() => {}, "");
}});
Test.create({expected:/\bInvalid scope: function/i, test() {
Composite.customize(() => {}, null);
}});
Test.create({expected:/\bInvalid scope/i, test() {
Composite.customize("", () => {});
}});
Test.create({test() {
Composite.customize(() => {});
}});
Test.create({test() {
Composite.customize("abc", () => {});
}});
Test.create({test() {
Composite.customize("abc > def", () => {});
}});
Test.start({auto:true});
</script>
<script type="text/test">
</script>
</head>
<body>
</body>
</html>