Code Monkey home page Code Monkey logo

tests's Introduction

Microformats test suite

This test suite was built to test microformats parsers. The tests are marked up in web pages and are human readable and then converted into JavaScript mocha.js test. The test are broken into two sets:

Version 2 test

Version 1 test (backwards compatibility tests)

(last update on 7 Feb 2013)

Using the test suite

You can test a browser compatibility by building a simple a simple helper.js wrapper a web API and recreating the two test html documents.

Current parsers using the suite

microformat-node - v1 test and v2 test

Server tool for creating *-test.js files

The project contains a node.js app that can convert the html mark-up into the mocha.js test files. You need to setup simple a node.js server. You will need to install node.js and nmp. At the command line for the downloaded directory for this project excute the following:

npm install 

then start the server with the command:

node bin/tests

within a browser you should now be able to view the test html pages:

http://localhost:8888/h-card.html	

finally call the web page to recreate the *.test.js files, by view the web address:

http://localhost:8888/update/

###License All content and code in this repo is released into the public domain.

tests's People

Contributors

glennjones avatar barnabywalters avatar tantek avatar

Watchers

psweatte avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.