-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from jpmorganchase/better-tests
General test suite improvements for speed, coverage, reproducibility, and developer quality-of-life.
- Loading branch information
Showing
28 changed files
with
469 additions
and
124 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
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
41 changes: 41 additions & 0 deletions
41
packages/perspective-viewer-highcharts/test/html/line.html
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!-- | ||
Copyright (c) 2017, the Perspective Authors. | ||
This file is part of the Perspective library, distributed under the terms of | ||
the Apache License 2.0. The full license can be found in the LICENSE file. | ||
--> | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
|
||
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"> | ||
<script src="perspective.view.js"></script> | ||
<script src="highcharts.plugin.js"></script> | ||
|
||
<link rel='stylesheet' href="demo.css"> | ||
|
||
</head> | ||
<body> | ||
|
||
<perspective-viewer | ||
view='line' | ||
columns='["Order Date", "Profit"]'> | ||
|
||
</perspective-viewer> | ||
|
||
<script> | ||
|
||
var xhr = new XMLHttpRequest(); | ||
xhr.open('GET', 'superstore.csv', true); | ||
xhr.onload = function () { | ||
document.getElementsByTagName('perspective-viewer')[0].load(xhr.response); | ||
} | ||
xhr.send(null); | ||
|
||
</script> | ||
|
||
</body> | ||
</html> |
41 changes: 41 additions & 0 deletions
41
packages/perspective-viewer-highcharts/test/html/scatter.html
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!-- | ||
Copyright (c) 2017, the Perspective Authors. | ||
This file is part of the Perspective library, distributed under the terms of | ||
the Apache License 2.0. The full license can be found in the LICENSE file. | ||
--> | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
|
||
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"> | ||
<script src="perspective.view.js"></script> | ||
<script src="highcharts.plugin.js"></script> | ||
|
||
<link rel='stylesheet' href="demo.css"> | ||
|
||
</head> | ||
<body> | ||
|
||
<perspective-viewer | ||
view='scatter' | ||
columns='["Sales","Profit"]'> | ||
|
||
</perspective-viewer> | ||
|
||
<script> | ||
|
||
var xhr = new XMLHttpRequest(); | ||
xhr.open('GET', 'superstore.csv', true); | ||
xhr.onload = function () { | ||
document.getElementsByTagName('perspective-viewer')[0].load(xhr.response); | ||
} | ||
xhr.send(null); | ||
|
||
</script> | ||
|
||
</body> | ||
</html> |
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
23 changes: 23 additions & 0 deletions
23
packages/perspective-viewer-highcharts/test/js/scatter.spec.js
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/****************************************************************************** | ||
* | ||
* Copyright (c) 2017, the Perspective Authors. | ||
* | ||
* This file is part of the Perspective library, distributed under the terms of | ||
* the Apache License 2.0. The full license can be found in the LICENSE file. | ||
* | ||
*/ | ||
|
||
const utils = require('@jpmorganchase/perspective-viewer/test/js/utils.js'); | ||
|
||
const simple_tests = require('@jpmorganchase/perspective-viewer/test/js/simple_tests.js'); | ||
|
||
|
||
utils.with_server({}, () => { | ||
|
||
describe.page("scatter.html", () => { | ||
|
||
simple_tests.default(); | ||
|
||
}); | ||
|
||
}); |
40 changes: 32 additions & 8 deletions
40
packages/perspective-viewer-highcharts/test/results/results.json
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,10 +1,34 @@ | ||
{ | ||
"shows a grid without any settings applied.": "9880a0fc261c00dc0a210eeeba7d06f6", | ||
"pivots by a row.": "4711f455d5c9d5d3bc8c177b92da725f", | ||
"pivots by two rows.": "53f0c27ba47a5df2974c30289fe02a78", | ||
"pivots by a row and a column.": "8546e4942f755673794abce6d584b6b6", | ||
"pivots by two rows and two columns.": "ff17b69cef7bfc90ec21b56729a4256f", | ||
"sorts by a numeric column.": "375062fbd50e09afa7b6df7e6b4a3a5f", | ||
"sorts by an alpha column.": "2643e0b5787b6e8e85f122b1713d01cd", | ||
"displays visible columns.": "1da296527f149393be8f3f99e34b3e4a" | ||
"superstore.html/shows a grid without any settings applied.": "9880a0fc261c00dc0a210eeeba7d06f6", | ||
"superstore.html/pivots by a row.": "4711f455d5c9d5d3bc8c177b92da725f", | ||
"superstore.html/pivots by two rows.": "0a70147319e8178982268bd4aa47e2f5", | ||
"superstore.html/pivots by a row and a column.": "8546e4942f755673794abce6d584b6b6", | ||
"superstore.html/pivots by two rows and two columns.": "fb32e990fef5a727d2cf4c32b39ff123", | ||
"superstore.html/sorts by a numeric column.": "375062fbd50e09afa7b6df7e6b4a3a5f", | ||
"superstore.html/sorts by an alpha column.": "2643e0b5787b6e8e85f122b1713d01cd", | ||
"superstore.html/displays visible columns.": "1da296527f149393be8f3f99e34b3e4a", | ||
"scatter.html/shows a grid without any settings applied.": "352854b8fa9466ddf9f884462f1fcfbf", | ||
"scatter.html/pivots by a row.": "d747a811424247f2e82fbd1f3e4b102d", | ||
"scatter.html/pivots by two rows.": "327f10b204fc30b4f09a3c78b0fb0789", | ||
"scatter.html/pivots by a row and a column.": "aefd420b9568e75b2e4aa28fa48e78b2", | ||
"scatter.html/pivots by two rows and two columns.": "5f32d38e1d95c92f29578d18ebd6f917", | ||
"scatter.html/sorts by a numeric column.": "a5cea557d54498d931272f9aba20cb38", | ||
"scatter.html/sorts by an alpha column.": "bcf36f6eaaa17eada7c284e6257cf6a7", | ||
"scatter.html/displays visible columns.": "7f4568381b35950da01a23b7a13fa216", | ||
"bar.html/shows a grid without any settings applied.": "fa9f33409c8409155b403c30e97b9397", | ||
"bar.html/pivots by a row.": "667024057e32ac7dcff85f714e991345", | ||
"bar.html/pivots by two rows.": "38985a461a70412e91ba04ed08630f56", | ||
"bar.html/pivots by a row and a column.": "d3c12fafa6aa6e48a65fb772633db007", | ||
"bar.html/pivots by two rows and two columns.": "62d79c966449d7baeb024991038dbce9", | ||
"bar.html/sorts by a numeric column.": "89ca3dd689ac395e44e77520845055f4", | ||
"bar.html/sorts by an alpha column.": "9116319b7b31aed9beba0632e474ddf0", | ||
"line.html/shows a grid without any settings applied.": "5c7d75d2872635968019ef08bc505ff3", | ||
"line.html/pivots by a row.": "a5c448c1f00f22657dae1ce3e059b075", | ||
"line.html/pivots by two rows.": "1944115018252f8dceb03f84fab2ebf4", | ||
"line.html/pivots by a row and a column.": "79c490c3f843b24af104b6681685b82f", | ||
"line.html/pivots by two rows and two columns.": "76b7c6b1c0854e3fc295fb4ad2bc8e86", | ||
"line.html/sorts by a numeric column.": "604f906365754839e95d0c7f01f15241", | ||
"line.html/sorts by an alpha column.": "a9cf05d78de91c435055049ed538d1ad", | ||
"line.html/displays visible columns.": "010890a5ebf5e4bd32557191a6b11c27", | ||
"bar.html/displays visible columns.": "a5662668dffce69048d1823052a83ab6" | ||
} |
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.