UNPKG

grover

Version:

PhantomJS wrapper for YUITest

42 lines (40 loc) 1.01 kB
<!doctype html> <html> <head> <title>Test One</title> </head> <body> <script src="http://yui.yahooapis.com/3.5.0/build/yui/yui-min.js"></script> <script> YUI().use('test', function(Y) { var suite = new Y.Test.Suite('Suite Bad'), suite2 = new Y.Test.Suite('Suite Bad #2'); for (var i = 1; i <= 5; i++) { suite.add(new Y.Test.Case({ name: "Good Case #" + i, 'test: bogus test - ': function() { Y.Assert.isTrue(true); } })); } for (var i = 1; i <= 4; i++) { suite.add(new Y.Test.Case({ name: "Bad Case #" + i, 'test: bogus test - ': function() { Y.Assert.isTrue(false); } })); } suite2.add(new Y.Test.Case({ name: "Case #6", 'test: bogus failed - ': function() { Y.Assert.isTrue(false); } })); suite.add(suite2); Y.Test.Runner.add(suite); Y.Test.Runner.run(); }); </script> </body> </html>