Skip to content

Commit

Permalink
First version of the suggested front end testing document
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin authored and tobes committed Nov 23, 2012
1 parent c81ee8f commit 3a22c90
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions doc/frontend-testing.rst
@@ -0,0 +1,62 @@
Front-end Testing
=================

All CKAN features should be coded so that they work in the
following browsers:

* Internet Explorer: 9, 8 and 7
* Firefox: Latest
* Chrome: Latest

These browsers are determined by whatever has >=1% share
on this page <http://data.gov.uk/data/site-usage?month=2012-11>

Install browser virtual machines
================================

In order to test in all the needed browsers you'll need access to
all the above browser versions. Firefox and Chrome should be easy
whatever platform you are on. Internet Explorer is a little trickier.
You'll need Virtual Machines.

We suggest you use <https://github.com/xdissent/ievms> to get an
Internet Explorer virtual machines.

Testing methodology
===================

Soon...

Common pitfulls & their fixes
=============================

Reserver JS keywords
--------------------

Since IE has a stricter language definition in JS it really doesn't
like you using JS reserved keywords method names, variables, etc...
This is a good list of keywords not to use in your JavaScript:

<https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Reserved_Words>

Unclosed JS arrays / objects
----------------------------

Internet Explorer doesn't like it's JS to have unclosed JS objects
and arrays. For example:

::

var foo = {
bar: 'Test',
};

Will break. However:

::

var foo = {
bar: 'Test'
};

Will not break.

0 comments on commit 3a22c90

Please sign in to comment.