Skip to content

Commit

Permalink
adding missing files in static and dynamic express tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tjanczuk committed Dec 22, 2011
1 parent 11b75af commit 5e16892
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/performance/www/express-dynamic/views/order.jade
@@ -0,0 +1,25 @@
html
head
title Sample order #{id}
link(rel='stylesheet', href = '/style.css')
body
table
tr
th Item
th Price
- for (var i in details)
tr
td.name #{details[i].name}
td.price #{details[i].price.toFixed(2)}
tr
td.summary Subtotal:
td.summary.price #{subtotal.toFixed(2)}
tr
td.summary Shipping & handling:
td.summary.price #{handling.toFixed(2)}
tr
td.summary Tax:
td.summary.price #{tax.toFixed(2)}
tr
td.summary Total:
td.summary.price #{total.toFixed(2)}
18 changes: 18 additions & 0 deletions test/performance/www/express-static/public/style.css
@@ -0,0 +1,18 @@
body
{
font-family: Arial;
}
th
{
background: Green;
text-align: left;
}
td.price
{
text-align: right;
}
td.summary
{
font-weight: bold;
text-align: right;
}

0 comments on commit 5e16892

Please sign in to comment.