test-console-test.js revision d05a15f927f57b215059ca30fed90b4ce8cffc2d
012a352f4b26cfd874db8d06debc495c2303e8b2Bob Halley/*
178f6ad061e54bc5babfca3577f72058fa0797c1Bob HalleyWarnings! These tests aren't actually all expected to pass, and this test suite
24a4fabc0b0508a2d2b4651454dba1dfa93968f2Tinderbox Usershould *not* be added to the CI tests. These tests are used to manually exercise
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrewsthe TestConsole widget.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews*/
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark AndrewsYUI.add('test-console-test', function (Y) {
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrewsvar Assert = Y.Assert,
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews suite;
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrewssuite = new Y.Test.Suite('Test Console');
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrewssuite.add(new Y.Test.Case({
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews name: 'General',
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley 'this test should fail': function () {
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User Assert.areSame('foo bar baz', 'moo mar maz');
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence },
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt 'this test should fail with an unexpected error': function () {
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt throw new Error('OMG!');
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt },
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley 'this test should pass': function () {
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence Assert.areEqual(true, true);
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley },
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt 'this test should also pass': function () {
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley Assert.areEqual('monkeys', 'monkeys');
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley }
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley}));
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyY.Test.Runner.add(suite);
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt}, '@VERSION@', {
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley requires: ['test-console']
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley});
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt