X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=test.coffee;h=02ebec3f200017b855b8deb68151c6ad807c0348;hb=ec345979893e45258cfaf79c340470d7d60957bf;hp=55470ceac98e3f0319eb44c6dda0d2ceebeb612f;hpb=d94782242ab0addd8ba355c0eccab9c97418c320;p=peach-html5-editor.git diff --git a/test.coffee b/test.coffee index 55470ce..02ebec3 100644 --- a/test.coffee +++ b/test.coffee @@ -1681,14 +1681,12 @@ tests = [ name: "plain-text-unsafe.dat #2" html: "\u0000" errors: 4 - #orig: expected: "| \n| \n| \n" - expected: "| \n| \n| \n| \"\ufffd\"\n" + expected: "| \n| \n| \n" }, { name: "plain-text-unsafe.dat #3" html: " \u0000 " errors: 4 - # orig: expected: "| \n| \n| \n" - expected: "| \n| \n| \n| \"\ufffd \"\n" + expected: "| \n| \n| \n" }, { name: "plain-text-unsafe.dat #4" html: "a\u0000a" @@ -7974,18 +7972,8 @@ serialize_els = (els, prefix = '| ') -> ret += "#{prefix}UNKNOWN TAG TYPE #{el.type}" return ret -test_results = passed: 0, failed: 0, fragment: 0, pending: 0, broken: 0 +test_results = passed: 0, failed: 0 test_parser = (args) -> - if args.fragment? # hide fragment tests for now - test_results.fragment += 1 - return - if args.name.substr(0, 20) is "pending-spec-changes" # hide for now - test_results.pending += 1 - return - if args.html.indexOf("\u0000") > -1 and args.expected.indexOf("\ufffd") is -1 - # these tests seem to think that \u0000 doesn't become \uffff in_body - test_results.broken += 1 - return wheic.debug_log_reset() parse_errors = [] args.error_cb = (i) -> @@ -8012,7 +8000,7 @@ test_parser = (args) -> test_results.passed += 1 # console.log "passed \"#{args.name}\"" test_summary = -> - console.log "Tests passed: #{test_results.passed}, Failed: #{test_results.failed}, fragment: #{test_results.fragment}, pending: #{test_results.pending}, broken: #{test_results.broken}" + console.log "Tests passed: #{test_results.passed}, Failed: #{test_results.failed}" next_test = 0