Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@
# Extensions
/extension/[email protected]

# dev-system
/node_modules/
/.pio.cache/
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,18 @@ This repository contains all test files that are manually used to reproduce cert
Firebug and/or Firefox behavior

Note that all automated tests (FBTests) should be part of firebug/tests repository.


Usage
=====

Standalone
----------

Place this repository onto a webserver and serve it as static HTML.

Within dev-system
-----------------

This project automatically deploys with the [dev-system](https://github.com/firebug/dev-system).

35 changes: 35 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "manual-tests",
"version": "0.0.0",
"private": true,
"pm": "npm",
"dependencies": {
"glob": "^3.2.9",
"smi.cli": "0.x"
},
"scripts": {
"install": "./node_modules/.bin/smi install"
},
"upstream": {
"packages": {
"top": [
"../../*",
"../../../../*"
]
}
},
"mappings": {
"io.pinf.server.www": "top/io.pinf.server.www"
},
"config": {
"smi.cli": {
"packagesDirectory": "node_modules"
},
"pio.deploy.converter": {
"name": "nodejs-server"
},
"io.pinf.server.www": {
"documentRootPath": "."
}
}
}
33 changes: 33 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

const GLOB = require("glob");
const SERVER = require("io.pinf.server.www");


SERVER.for(module, __dirname, function(app) {

app.get(/^\/$/, function (req, res, next) {
return GLOB("*/*/*.html", {
cwd: __dirname
}, function (err, paths) {
if (err) return next(err);

var payload = [];
payload.push('<h2>Manual Firebug Tests</h2>');
payload.push('<ul>');
paths.forEach(function(path) {
payload.push('<li><a href="' + path + '">' + path + '</a></li>');
});
payload.push('</ul>');

payload = payload.join("\n");

res.writeHead(200, {
"Content-Type": "text/html",
"Content-Length": payload.length
});

return res.end(payload);
});
});

});