LiTiang / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

Plugin to support loading external fixtures #235

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
For larger blocks of HTML and JSON data, I've found external, stand-alone 
fixture files to be more convenient than embedding it in the Javascript tests.

The attached loadSource plugin stores the files loaded from under a /fixtures/ 
path in a hash for later use by tests, rather than assuming it's all Javascript 
to eval.

Original issue reported on code.google.com by jabradford@gmail.com on 25 Apr 2011 at 10:59

Attachments:

GoogleCodeExporter commented 9 years ago
Do you have any information on how you actually references the HTML fixture 
inside your tests?

I would like to create several tests against an fairly large piece of 
complicated Html, and a solution to having Html fixtures would be ideal.

Can you give some more info on this?

Cheers

Original comment by darcy.m....@googlemail.com on 30 Jan 2012 at 8:49