UNPKG

zpt

Version:

Zenon Page Templates - JS (ZPT-JS)

60 lines (52 loc) 1.82 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Errors tests</title> <link rel="stylesheet" href="/node_modules/qunit/qunit/qunit.css"> <script src="http://127.0.0.1:9966/errors.js" defer></script> </head> <body> <div id="qunit"></div> <div id="qunit-fixture"></div> <p> Non existing expressions </p> <ol id="t1"> <li>strinnnng: should be <span id="t1-1" data-content="strinnnng:">not defined expression</span></li> <li>strinnnng:hello should be <span id="t1-2" data-content="strinnnng:hello">not defined expression</span></li> </ol> <p> Using null values in expressions </p> <ol id="t2"> <li>+: 1 nullValue should be <span id="t2-1" data-content="+: 1 nullValue">exception!</span></li> </ol> <p> Using null values in path expressions </p> <ol id="t3"> <li>nullValue/noWay should be <span id="t3-1" data-content="nullValue/noWay">exception!</span></li> </ol> <p> External macro in non-existing file </p> <div id="t4"> <b data-use-macro="'macro@notFoundFile.html'"> Macro goes here </b> </div> <p> Using null target </p> <ol id="t5"> <li>+: 1 2 should be 3<span id="t5-1" data-content="+: 1 2">must be 3</span></li> </ol> <p> Using undefined expression in path expression </p> <div id="t6"> 'a' || 'b' should be 'a'<span id="t6-1" data-content="'a' || 'b'">must be a</span> </div> </body> </html>