diff --git a/test/public/style.css b/test/public/style.css new file mode 100644 index 0000000..d304d49 --- /dev/null +++ b/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; +} \ No newline at end of file diff --git a/test/server.js b/test/server.js index ac466e4..a65daef 100644 --- a/test/server.js +++ b/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 diff --git a/test/views/layout.jade b/test/views/layout.jade index efa189a..f6391f5 100644 --- a/test/views/layout.jade +++ b/test/views/layout.jade @@ -2,5 +2,6 @@ html head title node-canvas + link(href='/style.css', rel='stylesheet') body - != body + #primary!= body diff --git a/test/views/tests.jade b/test/views/tests.jade index 339c457..bcb1fc9 100644 --- a/test/views/tests.jade +++ b/test/views/tests.jade @@ -1 +1,5 @@ -h1 Tests \ No newline at end of file +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. \ No newline at end of file