10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove/*
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan GroveWarnings! These tests aren't actually all expected to pass, and this test suite
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Groveshould *not* be added to the CI tests. These tests are used to manually exercise
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grovethe TestConsole widget.
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove*/
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan GroveYUI.add('test-console-test', function (Y) {
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grovevar Assert = Y.Assert,
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove suite;
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grovesuite = new Y.Test.Suite('Test Console');
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grovesuite.add(new Y.Test.Case({
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove name: 'General',
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove
d05a15f927f57b215059ca30fed90b4ce8cffc2dRyan Grove 'this test should fail': function () {
d05a15f927f57b215059ca30fed90b4ce8cffc2dRyan Grove Assert.areSame('foo bar baz', 'moo mar maz');
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove },
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove 'this test should fail with an unexpected error': function () {
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove throw new Error('OMG!');
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove },
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove 'this test should pass': function () {
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove Assert.areEqual(true, true);
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove },
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove 'this test should also pass': function () {
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove Assert.areEqual('monkeys', 'monkeys');
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove }
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove}));
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan GroveY.Test.Runner.add(suite);
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove}, '@VERSION@', {
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove requires: ['test-console']
10b29d99683d0782b9f9ccbfc2a38afe7288c4d6Ryan Grove});