Skip to content

Commit

Permalink
Delete filename.linebreak during testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole committed Feb 21, 2016
1 parent a78764d commit 130289c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
11 changes: 9 additions & 2 deletions docs/doc-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,13 @@ function switchTab(tab){
*
* When the document is ready, make the sidebar and all that jazz
*/
window.onload = function(){
(function (init) {
if (window.addEventListener) {
window.addEventListener('DOMContentLoaded', init);
} else { // IE8 and below
window.onload = init;
}
}(function(){
makeTree(tree, relativeDir, thisFile);
wireUpTabs();

Expand All @@ -220,4 +226,5 @@ window.onload = function(){
}else{
switchTab('tree');
}
};
}));

15 changes: 11 additions & 4 deletions docs/doc-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ td.docs {
td.code {
padding: 8px 15px 8px 25px;
width: 100%;
vertical-align: bottom;
vertical-align: top;
border-left: 1px solid; }

.background {
Expand All @@ -237,7 +237,8 @@ pre, tt, code {
line-height: 18px;
font-family: Menlo, Monaco, Consolas, "Lucida Console", monospace;
margin: 0;
padding: 0; }
padding: 0;
white-space: pre-wrap; }

.line-num {
display: inline-block;
Expand Down Expand Up @@ -305,6 +306,10 @@ a {

td.code, .background {
border-left-color: #dededc; }

td.linenos { background-color: #f0f0f0; padding-right: 10px; }
span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; }
pre { line-height: 125%; }
body .highlight .hll { background-color: #ffffcc }
body .highlight { background: #f8f8f8; }
body .highlight .c { color: #408080; font-style: italic } /* Comment */
Expand All @@ -320,11 +325,11 @@ body .highlight .ge { font-style: italic } /* Generic.Emph */
body .highlight .gr { color: #FF0000 } /* Generic.Error */
body .highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
body .highlight .gi { color: #00A000 } /* Generic.Inserted */
body .highlight .go { color: #808080 } /* Generic.Output */
body .highlight .go { color: #888888 } /* Generic.Output */
body .highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
body .highlight .gs { font-weight: bold } /* Generic.Strong */
body .highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
body .highlight .gt { color: #0040D0 } /* Generic.Traceback */
body .highlight .gt { color: #0044DD } /* Generic.Traceback */
body .highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
body .highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
body .highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
Expand Down Expand Up @@ -367,3 +372,5 @@ body .highlight .vc { color: #19177C } /* Name.Variable.Class */
body .highlight .vg { color: #19177C } /* Name.Variable.Global */
body .highlight .vi { color: #19177C } /* Name.Variable.Instance */
body .highlight .il { color: #666666 } /* Literal.Number.Integer.Long */


6 changes: 5 additions & 1 deletion test/test.csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ function getLoadTests(m, it) {
db[m](filename.linebreak, {lineBreak: '\r\n'} , function() {
db.size().should.eql(4);
db.last().should.be.eql(lastItem);
done();

// Delete linebreak file.
fs.unlink(filename.linebreak, function() {
done();
});
});
});
});
Expand Down

0 comments on commit 130289c

Please sign in to comment.