Browse Source

Setting up public statics for the test server

v1.x
Tj Holowaychuk 14 years ago
parent
commit
78f067cef8
  1. 16
      test/public/style.css
  2. 1
      test/server.js
  3. 3
      test/views/layout.jade
  4. 6
      test/views/tests.jade

16
test/public/style.css

@ -0,0 +1,16 @@
body {
padding: 40px 50px;
font: 13px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
p {
margin: 5px;
}
em {
color: #00C5F7;
}
a {
color: #00C5F7;
}
#primary {
width: 600px;
}

1
test/server.js

@ -18,6 +18,7 @@ app.set('view engine', 'jade');
app.use(express.favicon());
app.use(express.logger({ format: '\x1b[90m:remote-addr\x1b[0m - \x1b[33m:method\x1b[0m :url :status \x1b[90m:response-timems\x1b[0m' }));
app.use(app.router);
app.use(express.staticProvider(__dirname + '/public'));
app.use(express.errorHandler({ showStack: true }));
// Routes

3
test/views/layout.jade

@ -2,5 +2,6 @@
html
head
title node-canvas
link(href='/style.css', rel='stylesheet')
body
!= body
#primary!= body

6
test/views/tests.jade

@ -1 +1,5 @@
h1 Tests
h1 node-canvas
p.msg
| The tests below assert visual and api integrity by running the
em exact
| same code utilizing the client canvas api, as well as node-canvas.
Loading…
Cancel
Save