-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Output info about filtered files. * Supported JSON-based sub-reasons of NotSupported * Refactored Summary.Elem * Rename elements in Summary yet --> notsupported for other elements, e.g. timeout timeouts -> timeout timeout --> timeout_count * Include static filter info in summary * Refactored TestFilter.getFilters * Initialize summary for parseTest. Previously didn't initialize summary for parseTest. This fixes that. Also some stylistic changes e.g. snake_case -> camelCase * Refactored Summary.toString using helpers of Appender * Removed unnecessary file * Refactored ProgressBar and Summary for more readable info * Fixed bug in Summary.toSring * Apply suggested changes * Use Reasonpath instead of List[String] Co-authored-by: jhnaldo <jhpjhp0223@gmail.com>
- Loading branch information
1 parent
ff0c8a0
commit 108268a
Showing
16 changed files
with
299 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
src/main/resources/manuals/default/test262/in-progress.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
package esmeta.error | ||
|
||
// not supported errors | ||
case class NotSupported(msg: String) extends ESMetaError(msg, "NotSupported") | ||
/** not supported errors */ | ||
case class NotSupported(reasonPath: NotSupported.ReasonPath) | ||
extends ESMetaError(s"${reasonPath.mkString("/")}", "NotSupported") | ||
object NotSupported: | ||
type Reason = String | ||
type ReasonPath = List[Reason] | ||
def apply(reason: Reason): NotSupported = NotSupported(List(reason)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
package esmeta.error | ||
|
||
import esmeta.LINE_SEP | ||
import esmeta.util.SummaryElem | ||
import esmeta.util.Summary | ||
|
||
sealed abstract class Test262Error(msg: String) | ||
extends ESMetaError(msg, s"Test262Error") | ||
|
||
// Test262 failure | ||
case class Test262Fail(fails: SummaryElem) | ||
/** Test262 failure */ | ||
case class Test262Fail(fails: Summary.Elem) | ||
extends Test262Error( | ||
s"${fails.size} tests are failed:" + LINE_SEP + | ||
fails.elements.toList.sorted.mkString(LINE_SEP), | ||
fails.all.sorted.mkString(LINE_SEP), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.