Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Is there any recent activity on crosscheck?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
John  
View profile  
 More options Mar 25 2008, 10:49 pm
From: John <lgast...@gmail.com>
Date: Tue, 25 Mar 2008 19:49:29 -0700 (PDT)
Local: Tues, Mar 25 2008 10:49 pm
Subject: Is there any recent activity on crosscheck?
Is Firefox 2 support in the works?

If not, can someone give me some pointers as to where to look to add
it myself?

Surely I'm not the first/only person that wants to be able to easily
test JS in a FF2 environment?

Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
wadsworth@thefrontside.ne t  
View profile  
 More options Mar 26 2008, 1:59 am
From: "wadswo...@thefrontside.net" <jdwadswo...@gmail.com>
Date: Tue, 25 Mar 2008 22:59:05 -0700 (PDT)
Local: Wed, Mar 26 2008 1:59 am
Subject: Re: Is there any recent activity on crosscheck?
John,

No, there hasn't been much activity on Crosscheck in a while. I was
hoping to put some time into it soon. Specifically, I'd like to change
the implementation so that most of the environment code is implemented
in JavaScript. It should be possible to get the behavior that we want
with the newer JS features in the latest versions of Rhino. This
should make it easier for folks to contribute fixes to make the
browser environments more accurate to the originals. I suspect
grokking the current, parallel-hierarchy Rhino hack might be a bit
much to ask of a JavaScript developer.

In any case, what Crosscheck really needs, and what FF 2 support
requires, are a list of quirks in that environment. If your Crosscheck
FF 1.5 tests pass, but they fail in the browser, that's either a bug
in the FF 1.5 environment, or a feature for the FF 2 environment.
Either way, if you report it as an issue on Trac, it'll be more likely
to get fixed. The same goes for every other browser. The
infrastructure is there. What we need now to make Crosscheck really
cool and really useful is a long list of features and bugs in the DOM/
JS implementations of the various browsers.

Maybe submitting tickets on Trac isn't the best way to do that. Should
there be a public wiki somewhere? A group focused on cataloging the
differences in the JS implementations of the browsers? Does that
already exist?

Maybe this is a good week to start making plans. Any and all
resources, ideas, complaints or thoughts would be much appreciated.

Thanks,
Jason

On Mar 25, 10:49 pm, John <lgast...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John  
View profile  
 More options Mar 28 2008, 12:40 am
From: John <lgast...@gmail.com>
Date: Thu, 27 Mar 2008 21:40:54 -0700 (PDT)
Local: Fri, Mar 28 2008 12:40 am
Subject: Re: Is there any recent activity on crosscheck?
On a related note, I am encountering another issue in trying to write
a test to cover one of our scenarios and I don't know if it's a FF2
compatibility issue or if I'm just asking too much of the simulated
environment provided by crosscheck, or what... but the scenario is
basically this:

We have code that creates an iframe and then periodically goes in and
updates one of the divs in the document in the iframe.  I can't post
the raw code, but the code that does this looks roughly like this:

        updateXXX: function(name)
        {
                var newString = '[Prefix] - ' + name;
                var iframe = this._previouslyStoredReferenceToIFrame;
                if (iframe)
                {
                        var doc = iframe.contentWindow || iframe.contentDocument;
                        if (doc.document)
                        {
                                doc = doc.document;
                        }
                        doc.getElementById('theIdOfTheElementToBeUpdated').innerHTML =
newString;
                }
                else
                {
                        LOG.debug('Could not get iframe.')
                }
        }

The test I wrote to test this code looks roughly like this:

        testUpdateXXX: function() {
                var scwm = new ObjectUnderTest();

                var expected = '[Prefix] - Example';

                var iframe = document.createElement('iframe');
                iframe.id = 'someSpecificId';
                document.body.appendChild(iframe);
                if (iframe)
                {
                        var doc = iframe.contentWindow || iframe.contentDocument;
                        assertNotNull(doc);
                        if (doc.document)
                        {
                                doc = doc.document;
                        }

                        var div = doc.createElement('theIdOfTheElementToBeUpdated');

                        assertEquals('Something', div.innerHTML);
                        assertNotEquals(expected, div.innerHTML);
                        scwm.updateXXX('Example')
                        assertEquals(expected, div.innerHTML);
                }
                else
                {
                        fail('Could not get iframe')
                }
        }

And my test class always bombs at the assertNotNull(doc) line --
presumably because the simulated environment is not doing everything
the real browser does when I create an iframe element and add it to
the DOM?  Am I wrong in my hypothesis?  Is this actually a FF2
compatibility issue?  If not, is there an alternative (ideally
easier?) way for me to test code that does something like this?

Thanks,
-
John

On Mar 25, 10:59 pm, "wadswo...@thefrontside.net"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Wadsworth  
View profile  
 More options Mar 28 2008, 8:51 pm
From: Jason Wadsworth <jdwadswo...@gmail.com>
Date: Fri, 28 Mar 2008 20:51:06 -0400
Local: Fri, Mar 28 2008 8:51 pm
Subject: Re: [Crosscheck] Re: Is there any recent activity on crosscheck?
Well, I can tell you that we didn't do much of anything with iframes
while we were developing Crosscheck. I'm pretty sure that an iframe
is just another generic element from CCs perspective at this point.
That feature should probably be on the shortlist of features that
Crosscheck needs.

I can't really think of a good way to hack that in JavaScript with
the current implementation. You could create an BaseElement subclass
that contains the iframe properties that you're trying to use, if
you want to dive into the Java code.

- Jason

----------------------------------------------------------------------

On Mar 28, 2008, at 12:40 AM, John wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »