Skip to content

Commit fdd4281

Browse files
committed
Renamed test directory
1 parent 3ad5121 commit fdd4281

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+33
-35
lines changed

README.md

+2-2

build/CommentCoreLibrary.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var BinArray = (function(){
3434
}
3535
if(count > 1500) { console.error('Too many run cycles.'); }
3636
}
37-
return -1; //this line can never been run
37+
return -1; // Never actually run
3838
};
3939
BinArray.binsert = function(arr, what, how){
4040
var index = BinArray.bsearch(arr,what,how);
@@ -994,7 +994,6 @@ function AcfunParser(jsond){
994994
data.position = "relative";
995995
data.text = x.n; /*.replace(/\r/g,"\n");*/
996996
data.text = data.text.replace(/\ /g,"\u00a0");
997-
console.log(data.text);
998997
if(x.a != null){
999998
data.opacity = x.a;
1000999
}else{

build/CommentCoreLibrary.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/debugger.js

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
// Debugger for demo
22
var tests = {
3-
"test-1":"tests/test.xml",
4-
"test-2":"tests/test2.xml",
5-
"test-3":"tests/rokubunnoichi.xml",
6-
"test-4":"tests/mikunoshoushitsu.xml",
7-
"test-5":"tests/unowen.xml",
8-
"test-6":"tests/comment.xml",
9-
"test-7":"tests/extended.xml",
10-
"test-8":"tests/boss.xml",
11-
"test-9":"tests/utsukushiki_mono.xml",
12-
"test-s":"tests/scripting/kanpai.xml",
13-
"test-ac-1":{"f":'tests/ACFun.json',"p":"acfun"},
14-
"test-ac-2":{"f":'tests/ac940133.json',"p":"acfun"},
15-
"test-ts-1":"tests/invalid/no_closing.xml",
16-
"test-ts-2":"tests/invalid/syntax_error.xml",
17-
"test-ts-3":"tests/invalid/xss.xml"
3+
"test-1":"test/test.xml",
4+
"test-2":"test/test2.xml",
5+
"test-3":"test/rokubunnoichi.xml",
6+
"test-4":"test/mikunoshoushitsu.xml",
7+
"test-5":"test/unowen.xml",
8+
"test-6":"test/comment.xml",
9+
"test-7":"test/extended.xml",
10+
"test-8":"test/boss.xml",
11+
"test-9":"test/utsukushiki_mono.xml",
12+
"test-s":"test/scripting/kanpai.xml",
13+
"test-ac-1":{"f":'test/ACFun.json',"p":"acfun"},
14+
"test-ac-2":{"f":'test/ac940133.json',"p":"acfun"},
15+
"test-ts-1":"test/invalid/no_closing.xml",
16+
"test-ts-2":"test/invalid/syntax_error.xml",
17+
"test-ts-3":"test/invalid/xss.xml"
1818
};
1919

2020
var debugs = {

demo/scripting/ccl.htm

+6-6
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@
4949
<div style="margin-top:450px;">
5050
<h2>Tests</h2>
5151
<div class="controls">
52-
<a class="button" onclick="load('../../tests/scripting/kanpai.xml');" href="javascript:;">Run Scripting 1 (Pure) [Kanpai]</a>
53-
<a class="button" onclick="load('../../tests/scripting/tsubasa.xml');" href="javascript:;">Run Scripting 2 (Mixed) [Tusbasa]</a>
54-
<a class="button" onclick="load('../../tests/scripting/comment-festival-v3.xml');" href="javascript:;">Run Scripting 3 (Large) [Comment Festival v3]</a>
55-
<a class="button" onclick="load('../../tests/scripting/jinzou-enemy.xml');" href="javascript:;">Run Scripting 4 (drawPath) [Jinzou Enemy]</a>
56-
<a class="button" onclick="load('../../tests/scripting/crazy-night.xml');" href="javascript:;">Run Scripting 5 (textures &amp; 3d) [Crazy Night]</a>
57-
<a class="button" onclick="load('../../tests/scripting/round-and-round.xml');" href="javascript:;">Run Scripting 6 (Akari engine) [Round and Round]</a>
52+
<a class="button" onclick="load('../../test/scripting/kanpai.xml');" href="javascript:;">Run Scripting 1 (Pure) [Kanpai]</a>
53+
<a class="button" onclick="load('../../test/scripting/tsubasa.xml');" href="javascript:;">Run Scripting 2 (Mixed) [Tusbasa]</a>
54+
<a class="button" onclick="load('../../test/scripting/comment-festival-v3.xml');" href="javascript:;">Run Scripting 3 (Large) [Comment Festival v3]</a>
55+
<a class="button" onclick="load('../../test/scripting/jinzou-enemy.xml');" href="javascript:;">Run Scripting 4 (drawPath) [Jinzou Enemy]</a>
56+
<a class="button" onclick="load('../../test/scripting/crazy-night.xml');" href="javascript:;">Run Scripting 5 (textures &amp; 3d) [Crazy Night]</a>
57+
<a class="button" onclick="load('../../test/scripting/round-and-round.xml');" href="javascript:;">Run Scripting 6 (Akari engine) [Round and Round]</a>
5858
<div style="clear:both;"></div>
5959
</div>
6060
</div>

demo/scripting/sandbox.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ window.addEventListener('load',function(){
4646
window.sandbox.send("Update:DimensionUpdate", window.sandbox.getContext().getDimensions());
4747
}
4848
$("debug-basic").addEventListener("click", function(){
49-
fetchFile("../../tests/scripting/manzoku.biliscript");
49+
fetchFile("../../test/scripting/manzoku.biliscript");
5050
});
5151
$("debug-svg-madoka").addEventListener("click", function(){
52-
fetchFile("../../tests/scripting/madoka.biliscript");
52+
fetchFile("../../test/scripting/madoka.biliscript");
5353
});
5454
$("show-console").addEventListener("click", function(){
5555
$("codediv").style.display="none";
@@ -60,12 +60,12 @@ window.addEventListener('load',function(){
6060
$("consolediv").style.display="none";
6161
});
6262
$("debug-3dsphere").addEventListener("click", function(){
63-
fetchFile("../../tests/scripting/3dsphere.biliscript");
63+
fetchFile("../../test/scripting/3dsphere.biliscript");
6464
});
6565
$("debug-custom").addEventListener("click", function(){
6666
var file = prompt("Please input test file name:");
6767
if(file !== null && file !== ""){
68-
fetchFile("../../tests/scripting/" + file);
68+
fetchFile("../../test/scripting/" + file);
6969
}
7070
});
7171
$("debug-clear").addEventListener("click", function(){

docs/integration/README.md

spec/CommentCoreLibrary_spec.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe 'CommentManager', ->
5151
expect(manager.timeline).toEqual [c1, c2, c3, c4, c5]
5252

5353
it 'smoking test', ->
54-
jasmine.getFixtures().fixturesPath = "tests/"
54+
jasmine.getFixtures().fixturesPath = "test/"
5555
comments = AcfunParser(readFixtures 'ac940133.json')
5656
# TODO: Construct a json that cover all types of comments
5757
# and use it for smoking test

spec/parsers/AcfunFormat_spec.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22
describe 'AcfunFormat', ->
3-
jasmine.getFixtures().fixturesPath = "tests/"
3+
jasmine.getFixtures().fixturesPath = "test/"
44
it 'works', ->
55
json = readFixtures 'ACFun.json'
66
comments = AcfunParser(json)

spec/parsers/BilibiliFormat_spec.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22
describe 'BilibiliFormat', ->
3-
jasmine.getFixtures().fixturesPath = "tests/"
3+
jasmine.getFixtures().fixturesPath = "test/"
44
it 'parses normal comments', ->
55
xml_text = readFixtures 'av207527.xml'
66
comments = BilibiliParser(null, xml_text)

src/Array.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var BinArray = (function(){
3434
}
3535
if(count > 1500) { console.error('Too many run cycles.'); }
3636
}
37-
return -1; //this line can never been run
37+
return -1; // Never actually run
3838
};
3939
BinArray.binsert = function(arr, what, how){
4040
var index = BinArray.bsearch(arr,what,how);

src/parsers/AcfunFormat.js

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ function AcfunParser(jsond){
4242
data.position = "relative";
4343
data.text = x.n; /*.replace(/\r/g,"\n");*/
4444
data.text = data.text.replace(/\ /g,"\u00a0");
45-
console.log(data.text);
4645
if(x.a != null){
4746
data.opacity = x.a;
4847
}else{

tests/ACFun.json test/ACFun.json

File renamed without changes.

tests/Readme.md test/Readme.md

File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/boss.xml test/boss.xml

File renamed without changes.

tests/comment.xml test/comment.xml

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/test.xml test/test.xml

File renamed without changes.

tests/test2.xml test/test2.xml

File renamed without changes.

tests/unowen.xml test/unowen.xml

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)