UNPKG

@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

62 lines (59 loc) 1.55 kB
<!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 type="text/javascript"> Test.activate(); Test.create({test() { SiteMap.customize({ }); }}); Test.create({test() { SiteMap.customize({ "#": null }); }}); Test.create({test() { SiteMap.customize({ "#": [] }); }}); Test.create({expected:/\bInvalid facet(?!:)/i, test() { SiteMap.customize({ "#": [""] }); }}); Test.create({test() { SiteMap.customize({ "#": ["1"] }); }}); Test.create({expected:/\bInvalid facet: #1/i, test() { SiteMap.customize({ "#": ["#1"] }); }}); Test.create({test() { SiteMap.customize({ "#": ["A"] }); }}); Test.create({expected:/\bInvalid facet: #A/i, test() { SiteMap.customize({ "#": ["#A"] }); }}); Test.start({auto:true}); </script> </head> <body> </body> </html>