Open Bug 399311 Opened 17 years ago Updated 2 years ago

Import OpenLayers test suite

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

People

(Reporter: ted, Unassigned)

References

()

Details

(Keywords: student-project)

Attachments

(3 files)

OpenLayers (a JavaScript slippy map library, ala Google Maps) has "an awesome test suite" according to sayrer.  We should pull this in and import it.
"Pull this in and import it."  Yeah, I mean "run it in an automated fashion."
Component: Testing → DOM
QA Contact: testing → general
I think this would make a good student project.
Keywords: student-project
Openlayers Test Suite Patch

This is the integration of the Openlayers test suite into the Mozilla (and Mochitest) test suite.
This test suite is meant to go along with the other ajax libraries being tested. (This specific patch should be applied in mozilla/dom/tests/mochitest/ajax/)

As this test suite is a little oversize so I have divided the patch into 3 parts: patch1.txt, patch2.txt, patch3.txt. All of them had to be applied before running make. 
When I had applied the patch in my local mozilla-central directory in order to test, I had got some this kind of output, 

--------------
/home/mango/Desktop/patch1.txt:402: trailing whitespace.
    
/home/mango/Desktop/patch1.txt:414: trailing whitespace.
    window.console = 
/home/mango/Desktop/patch1.txt:420: trailing whitespace.
        
/home/mango/Desktop/patch1.txt:425: trailing whitespace.
        
/home/mango/Desktop/patch1.txt:430: trailing whitespace.
--------------

but when I had used the diff utility between the files I had applied the patch and the file from where I had created the patch, no difference came as such.
For applying the patch its better to use git apply instead of hg import -f as it was not working in my local working directory.
Attachment #393749 - Flags: review?
(In reply to comment #6)

Hey, great to see you making progress here!  A couple of process things:

* When you have a patch that you're working on and you want to put it up so people are aware of it, you can do that and say, "Work in Progress" or "[WIP]" so people know what it is.

* If you have got the patch in a state where you want someone to review it (I see you started to do this earlier), you should set the review flag to ? and then enter a reviewer's bugmail.  Perhaps Ted could do this, or recommend someone who could?  In this case you can use ":luser" which will auto-complete for his full bugmail.
Assignee: nobody → mail2jyoti88
Status: NEW → ASSIGNED
Attachment #393749 - Flags: review? → review?(ted.mielczarek)
Attachment #393749 - Flags: review?(ted.mielczarek)
Attachment #393749 - Flags: review?(ted.mielczarek)
Ted, are you planning to review this?
I just never found time, unfortunately, and it's a lot of code. :-(
Comment on attachment 393749 [details] [diff] [review]
Openlayers test suite patch 1

Punting review to ctalbert, this has sat around for too long.
Attachment #393749 - Flags: review?(ted.mielczarek) → review?(ctalbert)
Attachment #393749 - Flags: review?(ctalbert) → review-
Comment on attachment 393749 [details] [diff] [review]
Openlayers test suite patch 1

Thanks for the patch.  When we put these frameworks into Mochitest, we have to include a library that ties the ajax library's test runner to the Mochitest test runner.

I read in the README (ajax/openlayers/tests/README.txt) that run-tests.html is the test runner, but that is not included in these patches ( I applied all three to try it out). 

You can see how the test runner is modified by looking at the jquery testrunner here: http://mxr.mozilla.org/mozilla-central/source/dom/tests/mochitest/ajax/jquery/test/data/testrunner.js#147.

You see there that the Jquery specific test runner has been tweaked so that it reports pass/fail status up to the Mochitest framework's SimpleTest API.  This is what you need to do.  

I tried running the tests anyway, on Windows 7 with the latest mozilla-central in case I'd missed something but they failed.

I look forward to your next patch addressing the openlayers testrunner and completing the integration with Mochitest.

Also, please include the version or milestone or revision number of these openlayers tests so that we know when we need to update them going forward.
Component: DOM → DOM: Core & HTML

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: mail2jyoti88 → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: