Skip to content

Commit

Permalink
Pass unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed Aug 9, 2013
1 parent e6cdce0 commit 567a24a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
/utils/issue-by-commit/log.txt

exporting-server/java/highcharts-export/highcharts-export-web/pom.xml.amazon

exporting-server/java/highcharts-export/highcharts-export-web/pom.xml.github

exporting-server/java/highcharts-export/highcharts-export-convert/src/main/java/com/highcharts/export/pool/ServerObjectFactory.java

exporting-server/deploy export server to amazon.txt
/jsTestDriver.conf
2 changes: 0 additions & 2 deletions js/adapters/nolib-adapter.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@

/*
TODO:
- tooltip not disappearing in IE8
- test with sample suite
- unit tests
*/


Expand Down
5 changes: 3 additions & 2 deletions test/unit/ColorTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ ColorTest.prototype.testConstruction = function () {
}

// These 3 methods should be public
assertEquals("3 methods.", 3, members.length);
assertEquals("4 methods.", 4, members.length);
assertEquals("get should be public.", "get", members[0]);
assertEquals("brighten should be public.", "brighten", members[1]);
assertEquals("setOpacity should be public.", "setOpacity", members[2]);
assertEquals("rgba should be public.", "rgba", members[2]);
assertEquals("setOpacity should be public.", "setOpacity", members[3]);
}

ColorTest.prototype.testGet = function () {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/UtilitiesTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ UtilTest.prototype.testFormat = function () {
assertEquals('Shallow access format with decimals', '123.00', format("{value:.2f}", { value: 123 }));

// Six decimals by default
assertEquals('Six decimals by default', '12345.000000', format("{value:f}", { value: 12345 }));
assertEquals('Keep decimals by default', '12345.567', format("{value:f}", { value: 12345.567 }));

// Complicated string format
assertEquals(
Expand Down
1 change: 1 addition & 0 deletions test/unit/jsTestDriver.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ load:
- js/parts/Globals.js
- js/parts/Utilities.js
- js/parts/PathAnimation.js
- js/parts/JQueryAdapter.js
- js/parts/Adapters.js
- js/parts/debug/EventMonitor.js
- js/parts/Options.js
Expand Down

0 comments on commit 567a24a

Please sign in to comment.