зеркало из https://github.com/mozilla/gecko-dev.git
50514918d4
Now that the correct filename and line number is being passed to Cu.evalInSandbox, the stacktrace of the thrown error is correct. JavaScriptError uses the line number to index the injected source script, but the line number refers to the file represented by the "filename" parameter and not to the script. This effectively means that the line numbers in the produced stacktrace are wrong because line number 0 was hard-coded as an argument to Cu.evalInSandbox. This patch harmonises the stacktraces returned from WebDriver:ExecuteScript and WebDriver:ExecuteAsyncScript with stacktraces from normal JavaScript errors, by removing some extra clutter. MozReview-Commit-ID: 9nm6HeA4YVJ --HG-- extra : rebase_source : e0f6e0c9595456fb59123adc98cea6d3d32abce3 |
||
---|---|---|
.. | ||
awsy | ||
config | ||
crashtest | ||
firefox-ui | ||
geckodriver | ||
gtest | ||
marionette | ||
mochitest | ||
modules | ||
mozbase | ||
mozharness | ||
profiles | ||
runtimes | ||
specialpowers | ||
talos | ||
tools | ||
tps | ||
web-platform | ||
webdriver | ||
xpcshell | ||
README.txt | ||
cppunittest.ini | ||
mach_commands.py | ||
moz.build | ||
remotecppunittests.py | ||
runcppunittests.py | ||
testsuite-targets.mk |
README.txt
Common testing tools for mozilla codebase projects, test suite definitions for automated test runs, tests that don't fit anywhere else, and other fun stuff