Activate your free membership today | Log-in

Saturday, January 14th, 2012

Shim uses node.js to test sites on multiple browsers

Category: Browsers, JavaScript, Testing

<>p>Shim was developed within the Boston Globe’s media lab as a way to study how Web sites look on various devices and browsers. A laptop intercepts all wifi traffic – this is redirected to a custom node.js server – which inserts a javascript, or “shim,” at the head of each web page that is visited.

The shim, once loaded in a device’s browser, opens and maintains a socket connection to the server, according to to Shim’s developers. Shim was written in 2011 by Chris Marstall, Creative Technologist at the Boston Globe. The software has been open sourced. Write the Shim originators on git.hub:

Whenever a new page is requested, the page’s URL is broadcast to all connected browsers, which then redirect themselves to that URL, keeping all devices in sync. Shim info is available on git.hub.

Related Content:

  • Shim uses node.js to test sites on multiple browsers
    Shim is a node.js app that enables simultaneous, sync web surfing across a variety of browsers and devices. It was developed within Boston Globe's...
  • Node.js
    Node.js, often called simply "Node" in conversation, is a development platform built on top of Google's V8 JavaScript virtual...
  • Joyent PaaS may turn Web app world upside down
    Has the Platform as a Service world changed forever? A new service coming from Joyent may give stalwarts like Google App Engine a run for their...
  • polyfill
    A polyfill, also called a pollyfiller, is a small piece of JavaScript code that will mimic the API of a newer browser to provide functionality for an...
  • IPsec vs. SSL
    IPsec has been the standard for VPN encryption for some time, but there are alternatives to IPsec. This article takes a look at some of the...

Posted by jvaughan at 11:01 pm
3 Comments

+++--
3.5 rating from 27 votes

3 Comments »

Comments feed

Here’s an article on Node.js everyone should read: http://teddziuba.com/2011/10/node-js-is-cancer.html

Comment by Vordreller — January 14, 2012

After reading the poorly written article by Ted Dziuba (linked by Vordreller) you should then check out these replies:
http://blog.brianbeck.com/post/10967024222/node-js-cures-cancer
http://joshuakehn.com/2011/10/3/Diagnosis-No-Cancer.html

Ted Dziuba is heavily opinionated but relies far more on his opinion than actual fact.

Comment by KeriHenare — January 15, 2012

Good news that node.js enters the realm of UI testing. Cross-browser issues are the first problem in the world of web development (IMHO), and having more tools to cope with them is not bad at all.

Comment by saeedneamati — February 9, 2012

Leave a comment

You must be logged in to post a comment.