X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=test.coffee;h=3098bbd756e3c4d696bf215f50174b4826df5e2c;hb=adc7477c34f3a2aa480e7f2af5ea954d2421d000;hp=9e82bdd8b14d23ab94d52fab7bacf191793db87b;hpb=dc9926c4a5e1deaf3a5186edc15c2655ea99fb39;p=peach-html5-editor.git diff --git a/test.coffee b/test.coffee index 9e82bdd..3098bbd 100644 --- a/test.coffee +++ b/test.coffee @@ -7390,6 +7390,7 @@ tests = [ expected: "| \n" }, { name: "tests_innerHTML_1.dat #85" + html: "" fragment: "html" expected: "| \n| \n" }, { @@ -7832,6 +7833,8 @@ test_parser = (args) -> # console.log str console.log "FAILED: \"#{args.name}\"" console.log " Input: #{args.html}" + if args.fragment? + console.log " Fragment: #{args.fragment}" console.log " Correct: #{args.expected}" console.log " Output: #{serialized}" if parse_errors.length > 0 @@ -7843,8 +7846,7 @@ test_parser = (args) -> console.log "passed \"#{args.name}\"" test_results.passed += 1 test_summary = -> - console.log "Tests passed: #{test_results.passed}" - console.log "Tests Failed: #{test_results.failed}" + console.log "Tests passed: #{test_results.passed}, Tests Failed: #{test_results.failed}" next_test = 0 @@ -7852,11 +7854,12 @@ run_tests_and_breathe = -> start_time = new Date() loop if next_test >= tests.length + test_summary() return test_parser tests[next_test] next_test += 1 now = new Date() if now - start_time > 100 # miliseconds - setTimeout run_tests_and_breathe, 1 + break + setTimeout run_tests_and_breathe, 1 run_tests_and_breathe() -test_summary()