~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/javascript/server_fixture.js

  • Committer: Gary Poster
  • Date: 2011-11-03 23:03:26 UTC
  • mto: (14096.1.3 bug724609)
  • mto: This revision was merged to the branch mainline in revision 14257.
  • Revision ID: gary.poster@canonical.com-20111103230326-883fahz3pll3u0cq
incorporate timing limits per test on yuixhr tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    window.status = '::::' + Y.JSON.stringify(data);
72
72
  };
73
73
  Y.Test.Runner.on('complete', handle_complete);
 
74
  var handle_pass = function(data) {
 
75
    window.status = '>>>>' + Y.JSON.stringify(
 
76
      {testCase: data.testCase.name,
 
77
       testName: data.testName,
 
78
       type: data.type
 
79
      });
 
80
  };
 
81
  Y.Test.Runner.on('pass', handle_pass);
 
82
  var handle_fail = function(data) {
 
83
    window.status = '>>>>' + Y.JSON.stringify(
 
84
      {testCase: data.testCase.name,
 
85
       testName: data.testName,
 
86
       type: data.type,
 
87
       error: data.error.getMessage()
 
88
      });
 
89
  }
 
90
  Y.Test.Runner.on('fail', handle_fail);
74
91
  Y.Test.Runner.add(suite);
75
92
 
76
93
  var console = new Y.Console({newestOnTop: false});