[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 fs = require 'fs' 2 print = (s) -> fs.write "/dev/stderr", s, 'w' 3 4 page = new WebPage() 5 page.onConsoleMessage = (msg) -> console.error msg 6 7 timeoutId = null 8 deferTimeout = -> 9 clearTimeout timeoutId if timeoutId 10 timeoutId = setTimeout -> 11 console.error "Timeout" 12 phantom.exit 1 13 , 3000 14 15 page.open phantom.args[0], -> 16 deferTimeout() 17 18 setInterval -> 19 tests = page.evaluate -> 20 tests = document.getElementById('qunit-tests').children 21 for test in tests when test.className isnt 'running' and not test.recorded 22 test.recorded = true 23 if test.className is 'pass' 24 '.' 25 else if test.className is 'fail' 26 'F' 27 28 for test in tests when test 29 deferTimeout() 30 print test 31 32 result = page.evaluate -> 33 result = document.getElementById('qunit-testresult') 34 tests = document.getElementById('qunit-tests').children 35 36 if result.innerText.match /completed/ 37 console.error "" 38 39 for test in tests when test.className is 'fail' 40 console.error test.innerText 41 42 console.error result.innerText 43 return parseInt result.getElementsByClassName('failed')[0].innerText 44 45 return 46 47 phantom.exit result if result? 48 , 100
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |