mirror of https://github.com/tc39/test262.git
Made web site packager insert line breaks into JSON files for saner diffs.
This commit is contained in:
parent
75fbd71ee0
commit
1ba4238d9a
|
@ -270,7 +270,8 @@ for chapter in TEST_SUITE_SECTIONS:
|
|||
testsList["testsCollection"] = sect
|
||||
with open(os.path.join(TEST262_WEB_CASES_DIR, chapterName + ".json"),
|
||||
"w") as f:
|
||||
json.dump(testsList, f, separators=(',',':'), sort_keys=True)
|
||||
json.dump(testsList, f, separators=(',',':'), sort_keys=True,
|
||||
indent=0)
|
||||
|
||||
|
||||
if TESTCASELIST_PER_JSON:
|
||||
|
@ -282,7 +283,7 @@ for chapter in TEST_SUITE_SECTIONS:
|
|||
"testcases_%s.json" % chapterName),
|
||||
"w") as f:
|
||||
json.dump(CHAPTER_TEST_CASES_JSON, f, separators=(',',':'),
|
||||
sort_keys=True)
|
||||
sort_keys=True, indent=0)
|
||||
generateHarness(ARGS.type, "testcases_%s.json" % chapterName,
|
||||
chapterName.replace("ch", "Chapter "))
|
||||
|
||||
|
@ -302,7 +303,7 @@ TEST_CASES_JSON = {}
|
|||
TEST_CASES_JSON["numTests"] = TOTAL_TEST_COUNT
|
||||
TEST_CASES_JSON["testSuite"] = SECTIONS_LIST
|
||||
with open(os.path.join(TEST262_WEB_CASES_DIR, "default.json"), "w") as f:
|
||||
json.dump(TEST_CASES_JSON, f, separators=(',',':'), sort_keys=True)
|
||||
json.dump(TEST_CASES_JSON, f, separators=(',',':'), sort_keys=True, indent=0)
|
||||
generateHarness(ARGS.type, "default.json", "Chapters 1-16")
|
||||
|
||||
#Overall description of this version of the test suite
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
48758
website/json/ch15.json
48758
website/json/ch15.json
File diff suppressed because one or more lines are too long
|
@ -1 +1,14 @@
|
|||
{"numTests":11571,"testSuite":["json/ch07.json","json/ch08.json","json/ch09.json","json/ch10.json","json/ch11.json","json/ch12.json","json/ch13.json","json/ch14.json","json/ch15.json"]}
|
||||
{
|
||||
"numTests":11571,
|
||||
"testSuite":[
|
||||
"json/ch07.json",
|
||||
"json/ch08.json",
|
||||
"json/ch09.json",
|
||||
"json/ch10.json",
|
||||
"json/ch11.json",
|
||||
"json/ch12.json",
|
||||
"json/ch13.json",
|
||||
"json/ch14.json",
|
||||
"json/ch15.json"
|
||||
]
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"date":"2012-09-10","version":"ES5.1"}
|
||||
{"date":"2012-09-12","version":"ES5.1"}
|
|
@ -1 +1,6 @@
|
|||
{"numTests":20,"testSuite":["json/bestPractice.json"]}
|
||||
{
|
||||
"numTests":20,
|
||||
"testSuite":[
|
||||
"json/bestPractice.json"
|
||||
]
|
||||
}
|
|
@ -1 +1,6 @@
|
|||
{"numTests":715,"testSuite":["json/ch07.json"]}
|
||||
{
|
||||
"numTests":715,
|
||||
"testSuite":[
|
||||
"json/ch07.json"
|
||||
]
|
||||
}
|
|
@ -1 +1,6 @@
|
|||
{"numTests":182,"testSuite":["json/ch08.json"]}
|
||||
{
|
||||
"numTests":182,
|
||||
"testSuite":[
|
||||
"json/ch08.json"
|
||||
]
|
||||
}
|
|
@ -1 +1,6 @@
|
|||
{"numTests":128,"testSuite":["json/ch09.json"]}
|
||||
{
|
||||
"numTests":128,
|
||||
"testSuite":[
|
||||
"json/ch09.json"
|
||||
]
|
||||
}
|
|
@ -1 +1,6 @@
|
|||
{"numTests":377,"testSuite":["json/ch10.json"]}
|
||||
{
|
||||
"numTests":377,
|
||||
"testSuite":[
|
||||
"json/ch10.json"
|
||||
]
|
||||
}
|
|
@ -1 +1,6 @@
|
|||
{"numTests":1320,"testSuite":["json/ch11.json"]}
|
||||
{
|
||||
"numTests":1320,
|
||||
"testSuite":[
|
||||
"json/ch11.json"
|
||||
]
|
||||
}
|
|
@ -1 +1,6 @@
|
|||
{"numTests":521,"testSuite":["json/ch12.json"]}
|
||||
{
|
||||
"numTests":521,
|
||||
"testSuite":[
|
||||
"json/ch12.json"
|
||||
]
|
||||
}
|
|
@ -1 +1,6 @@
|
|||
{"numTests":230,"testSuite":["json/ch13.json"]}
|
||||
{
|
||||
"numTests":230,
|
||||
"testSuite":[
|
||||
"json/ch13.json"
|
||||
]
|
||||
}
|
|
@ -1 +1,6 @@
|
|||
{"numTests":24,"testSuite":["json/ch14.json"]}
|
||||
{
|
||||
"numTests":24,
|
||||
"testSuite":[
|
||||
"json/ch14.json"
|
||||
]
|
||||
}
|
|
@ -1 +1,6 @@
|
|||
{"numTests":8074,"testSuite":["json/ch15.json"]}
|
||||
{
|
||||
"numTests":8074,
|
||||
"testSuite":[
|
||||
"json/ch15.json"
|
||||
]
|
||||
}
|
|
@ -1 +1,6 @@
|
|||
{"numTests":137,"testSuite":["json/intl402.json"]}
|
||||
{
|
||||
"numTests":137,
|
||||
"testSuite":[
|
||||
"json/intl402.json"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue