Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
javascript toolbar shows function code in 1 line
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
  3 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
 
ejv  
View profile  
 More options Aug 29 2011, 7:51 am
Newsgroups: mozilla.addons.chromebug
From: ejv <enricj...@yahoo.es>
Date: Mon, 29 Aug 2011 04:51:24 -0700 (PDT)
Local: Mon, Aug 29 2011 7:51 am
Subject: javascript toolbar shows function code in 1 line
I don't kow why the script toolbar shows functions well formatted and
others unformatted (inlined). This means I can't debug the unformatted
functions.

For example, in the following extract of the same JS file, the
Selenium constructor appears well formatted, but the
decorateFunctionWithTimeout function is inlined.

Anyone knows the reason?

function Selenium(browserbot) {
this.browserbot = browserbot;
this.optionLocatorFactory = new OptionLocatorFactory;
this.page = function () {return browserbot;};
this.defaultTimeout = Selenium.DEFAULT_TIMEOUT;
this.mouseSpeed = Selenium.DEFAULT_MOUSE_SPEED;
if (bot && bot.locators && bot.locators.add) {
bot.locators.add("xpath", {single: function (target, opt_root) {return
browserbot.locateElementByXPath(target, opt_root);}, many: function
(target, opt_root) {return browserbot.locateElementsByXPath(target,
opt_root);}});
bot.locators.add("css", {single: function (target, opt_root) {return
browserbot.locateElementByCss(target, opt_root);}, many: function
(target, opt_root) {return eval_css(target, opt_root);}});

}
}

Selenium.DEFAULT_TIMEOUT = 30000;
Selenium.DEFAULT_MOUSE_SPEED = 10;
Selenium.RIGHT_MOUSE_CLICK = 2;
Selenium.decorateFunctionWithTimeout = function (f, timeout, callback)
{if (f == null) {return null;}var timeoutTime =
getTimeoutTime(timeout);return function () {if ((new Date).getTime() >
timeoutTime) {if (callback != null) {callback();}throw new
SeleniumError("Timed out aftmr " + timeout + "ms");}return f();};};

 
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.
Max Imovic  
View profile  
 More options Sep 5 2011, 4:21 pm
Newsgroups: mozilla.addons.chromebug
Followup-To: mozilla.addons.chromebug
From: Max Imovic <maksimovic2...@gmail.com>
Date: Mon, 5 Sep 2011 13:21:37 -0700 (PDT)
Local: Mon, Sep 5 2011 4:21 pm
Subject: Re: javascript toolbar shows function code in 1 line
On Aug 29, 1:51 pm, ejv <enricj...@yahoo.es> 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.
Max Imovic  
View profile  
 More options Sep 5 2011, 4:31 pm
Newsgroups: mozilla.addons.chromebug
From: Max Imovic <maksimovic2...@gmail.com>
Date: Mon, 5 Sep 2011 13:31:21 -0700 (PDT)
Local: Mon, Sep 5 2011 4:31 pm
Subject: Re: javascript toolbar shows function code in 1 line
On Aug 29, 1:51 pm, ejv <enricj...@yahoo.es> 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 »