Search completed in 1.66 seconds.
Introduction to automated testing - Learn web development
previous overview: cross browser
testing next manually running tests on several browsers and devices, several times per day, can get tedious, and time-consuming.
...in this article, we look at what is available, how to use task runners, and how to use the basics of commercial browser test automation apps such as lambdatest, sauce labs, browserstack, and
testingbot.
... prerequisites: familiarity with the core html, css, and javascript languages; an idea of the high level principles of cross-browser
testing.
...And 38 more matches
Strategies for carrying out testing - Learn web development
previous overview: cross browser
testing next this article starts the module off by providing an overview of the topic of (cross) browser
testing, answering questions such as "what is cross-browser
testing?", "what are the most common types of problems you'll encounter?", and "what are the main approaches for
testing, identifying, and fixing problems?" prerequisites: familiarity with the core html, css, and javascript languages; an idea of the high level principles of cross-browser
testing.
... objective: to gain an understanding of the high-level concepts involved in cross-browser
testing.
... when doing cross-browser
testing, you need to work out a list of browsers you will need to test on to start with.
...And 23 more matches
Introduction to cross browser testing - Learn web development
overview: cross browser
testing next this article starts the module off by providing an overview of the topic of (cross) browser
testing, answering questions such as "what is cross browser
testing?", "what are the most common types of problems you'll encounter?", and "what are the main approaches for
testing, identifying, and fixing problems?" prerequisites: familiarity with the core html, css, and javascript languages.
... objective: to gain an understanding of the high-level concepts involved in cross browser
testing.
... what is cross browser
testing?
...And 21 more matches
Cross browser testing - Learn web development
this module focuses on
testing web projects across different browsers.
...what users, browsers, and devices do you most need to worry about?), how to go about doing
testing, the main issues that you'll face with different types of code and how to mitigate them, what tools are most useful in helping you test and fix problems, and how to use automation to speed up
testing.
... guides introduction to cross browser
testing this article starts the module off by providing an overview of the topic of cross browser
testing, answering questions such as "what is cross browser
testing?", "what are the most common types of problems you'll encounter?", and "what are the main approaches for
testing, identifying, and fixing problems?" strategies for carrying out
testing next, we drill down into carrying out
testing, looking at identifying a target audie...
...And 5 more matches
MailNews automated testing
automated
testing is an increasingly significant and important part of mailnews development.
... functional
testing xpcshell-tests and make check these are core test harnesses to which mailnews adds its own tests.
...this makes them especially useful for
testing at the component / module level.
...And 4 more matches
How do you set up a local testing server? - Learn web development
this article explains how to set up a simple local
testing server on your machine, and the basics of how to use it.
... objective: you will learn how to set up a local
testing server.
... the problem with
testing local files some examples won't run if you open them as local files.
Tools and testing - Learn web development
once you've started to become comfortable programming with core web technologies (like html, css, and javascript), and you start to get more experience, read more resources, and learn more tips and tricks, you'll start to come across all kind of tools, from javascript frameworks, to
testing and automation tools, and more besides.
... cross browser
testing this module looks specifically at the area of
testing web projects across different browsers.
...what users, browsers and devices do you most need to worry about?), how to go about
testing, the main issues that you'll face with different types of code and how to fix/mitigate those, what tools are most useful in helping you test and fix problems, and how to use automation to speed up
testing.
L10n testing with xcode
setting up your l10n
testing environment once you have your l10n
testing environment set up in xcode,
testing your firefox on ios localization is a breeze.
... launching &
testing your firefox on ios localization the ios simulator is fairly easy to use once you launch your app.
... congratulations, now your
testing your app!
Unit Testing - Archive of obsolete content
if we run the add-on and click the button, we should see the following logging output: info: agvsbg8= info: hello
testing the base64 module navigate to the add-on's test directory and delete the test-index.js file.
...assert is supplied by the test/assert module and implements the commonjs unit
testing specification.
Fuzz testing - MDN Web Docs Glossary: Definitions of Web-related terms
fuzzing is a technique for
testing software using automated tools to provide invalid or unexpected input to a program or function in a program, then checking the results to see if the program crashes or otherwise acts inappropriately.
... jesse's blog posts about fuzzing wikipedia: fuzz
testing fuzzdb jsfuzz - coverage guided javascript fuzzer ...
Testing Mozilla code
testing your code is important!
...these articles will help you master (and continue to excel at)
testing mozilla code.
requiredFeatures - SVG: Scalable Vector Graphics
<font-face-name> elements http://www.w3.org/tr/svg11/feature#basicfont the browser supports the <font>, <font-face>, <glyph>, <missing-glyph>, <hkern>, <font-face-src> and <font-face-name> elements http://www.w3.org/tr/svg11/feature#extensibility the browser supports the <foreignobject> element example svg <svg width="450" height="1170" xmlns="http://www.w3.org/2000/svg"> <!--
testing : http://www.w3.org/tr/svg11/feature#svg --> <rect class="ko" x="10" y="10" height="25" width="430" /> <rect class="ok" x="10" y="10" height="25" width="430" requiredfeatures="http://www.w3.org/tr/svg11/feature#svg" /> <text x="20" y="27">http://www.w3.org/tr/svg11/feature#svg</text> <!--
testing : http://www.w3.org/tr/svg11/feature#svgdom --> <rect class="ko" x="10" y="35" height="...
...25" width="430" /> <rect class="ok" x="10" y="35" height="25" width="430" requiredfeatures="http://www.w3.org/tr/svg11/feature#svgdom" /> <text x="20" y="52">http://www.w3.org/tr/svg11/feature#svgdom</text> <!--
testing : http://www.w3.org/tr/svg11/feature#svg-static --> <rect class="ko" x="10" y="60" height="25" width="430" /> <rect class="ok" x="10" y="60" height="25" width="430" requiredfeatures="http://www.w3.org/tr/svg11/feature#svg-static" /> <text x="20" y="77">http://www.w3.org/tr/svg11/feature#svg-static</text> <!--
testing : http://www.w3.org/tr/svg11/feature#svgdom-static --> <rect class="ko" x="10" y="85" height="25" width="430" /> <rect class="ok" x="10" y="85" height="25" width="430" requiredfeatures="http://www.w3.org/tr/svg11/feature#svgdom-static...
..." /> <text x="20" y="102">http://www.w3.org/tr/svg11/feature#svgdom-static</text> <!--
testing : http://www.w3.org/tr/svg11/feature#svg-animation --> <rect class="ko" x="10" y="110" height="25" width="430" /> <rect class="ok" x="10" y="110" height="25" width="430" requiredfeatures="http://www.w3.org/tr/svg11/feature#svg-animation" /> <text x="20" y="127">http://www.w3.org/tr/svg11/feature#svg-animation</text> <!--
testing : http://www.w3.org/tr/svg11/feature#svgdom-animation --> <rect class="ko" x="10" y="135" height="25" width="430" /> <rect class="ok" x="10" y="135" height="25" width="430" requiredfeatures="http://www.w3.org/tr/svg11/feature#svgdom-animation" /> <text x="20" y="152">http://www.w3.org/tr/svg11/feature#svgdom-animation</text> <!--
testing : http://ww...
...And 17 more matches
Index - Archive of obsolete content
36
testing the add-on sdk add-on sdk, cfx, jpm, sdk no summary!
... 113 test/assert add-on sdk, jpm implements the assert interface defined in the commonjs unit
testing specification version 1.1.
... 117 test/utils helper methods used in the commonjs unit
testing suite.
...And 16 more matches
Handling common accessibility problems - Learn web development
previous overview: cross browser
testing next next we turn our attention to accessibility, providing information on common problems, how to do simple
testing, and how to make use of auditing/automation tools for finding accessibility issues.
... prerequisites: familiarity with the core html, css, and javascript languages; an idea of the high level principles of cross browser
testing.
... in a way, this whole module is about accessibility — cross browser
testing makes sure that your sites can be used by as many people as possible.
...And 16 more matches
Index - Learn web development
to help you achieve this, this module will cover general best practices (which are demonstrated throughout the html, css, and javascript topics), cross browser
testing, and some tips on enforcing accessibility from the start.
...we also took you through the usage of the most common screenreaders to aid you in accessibility
testing.
... 20 how do you set up a local
testing server?
...And 15 more matches
Localizing with Koala
for the purposes of this tutorial, the locale code that we will use will be called "x-
testing".
...translating to x-
testing will basically consist of converting any strings to uppercase, for example "file" in original version (en-us) will become "file" in x-
testing.
...firefox> rmdir 3.6 c:\mozilla\l10n\application\firefox> hg clone http://hg.mozilla.org/releases/mozilla-1.9.2 3.6 requesting all changes adding changesets adding manifests adding file changes added 33099 changesets with 158636 changes to 50664 files (+9 heads) updating working directory 40357 files updated, 0 files merged, 0 files removed, 0 files unresolved configure the locale locale id: x-
testing (put your locale's code) version: 3.6 location: choose the folder where you want to keep the localized files or leave empty for now check "mercurial" if you wish to use mercurial to keep the revision history of your files (very recommended) existing localizations: url: if you're editing an existing localization or you already have a repository set up (either on hg.mozilla.org or bitbucket), type...
...And 15 more matches
Localizing without a specialized tool
folder structure throughout this document, we will be using the following folder structure in all examples: your working directory (root) mozilla-1.9.2 (en-us source, pulled from http://hg.mozilla.org/releases/mozilla-1.9.2) l10n-mozilla-1.9.2 (a directory containing localization directories, one dir per localization; often referred to as "l10n base") x-
testing (a directory with your localization files) please either follow this structure closely or adjust all commands in the documentation as needed by your custom set-up.
...x-
testing.
... depending on your case, you can do it in one of the following ways: if no localization exists yet, create an empty folder and create a mercurial repository in it: $ mkdir x-
testing $ cd x-
testing $ hg init if there is a bitbucket repository with localization files, you can pull from it.
...And 15 more matches
Creating a Language Pack
creating a langpack we will now merge the localized files from x-
testing locale with the en-us files from the original source.
... while in that directory, issue the following command: $ make merge-x-
testing locale_mergedir=$(pwd)/mergedir x-
testing: browser chrome browser aboutcerterror.dtd // add and localize this file ...
... x-
testing: changed: 6 missinginfiles: 6124 missing: 5 0% of entries changed this step is not necessary anymore to create the language pack, because it is included in the next command.
...And 12 more matches
QA phase
now we'll walk you through performing some quality assurance
testing on your work to make sure you're on the right track.
...inary instructions we will be using the following file directories for this example: your working directory (root)/ mozilla-aurora (en-us source, pulled from http://hg.mozilla.org/releases/mozilla-aurora )/ l10n-central (directory for l10n directories, one per l10n; often referred to as "l10n base")/ your-locale-code (a directory with your l10n files, in this example we'll use x-
testing) example: root/mozilla-aurora & root/l10n-central/x-
testing additionally, you will need to copy and translate the toolkit/defines.inc file directly from en-us before you can build.
... enter the following commands: mkdir -p l10n-central/x-
testing/toolkit/ cp mozilla-aurora/toolkit/locales/defines.inc l10n-central/x-
testing/toolkit/defines.inc tah-dah!
...And 12 more matches
Setting up your own test automation environment - Learn web development
previous overview: cross browser
testing in this article, we will teach you how to install your own automation environment and run your own tests using selenium/webdriver and a
testing library such as selenium-webdriver for node.
... we will also look at how to integrate your local
testing environment with commercial tools like the ones discussed in the previous article.
... prerequisites: familiarity with the core html, css, and javascript languages; an idea of the high-level principles of cross browser
testing, and automated
testing.
...And 11 more matches
Sunbird Theme Tutorial - Archive of obsolete content
copy and paste the content from here, making sure that you scroll to get all of it: <?xml version="1.0"?> <rdf xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest" em:id="just-
testing@example.com" em:name="just
testing" em:creator="rod whiteley" em:description="a test theme for sunbird" em:homepageurl="http://developer.mozilla.org/" em:version="0.1" em:internalname="
testing" em:type="4" > <em:targetapplication><!-- sunbird --> <description em:id="{718e30fb-e89b-41dd-9da7-e25a45638b28}" em:minversion="0.2.9" em:max...
...copy and paste the content from here (just one line): skin calendar
testing chrome/calendar/ change <tt>
testing</tt> to your theme's one-word internal name.
...for
testing purposes, go to the <tt>calendar</tt> directory that you have just pasted.
...And 6 more matches
Deploying our app - Learn web development
instead of running the server with npx parcel src/index.html, we can run it with npx parcel build src/index.html and parcel will build everything ready for production instead of just running it for development and
testing purposes.
...
testing testing itself is a vast subject, even within the realm of front end development.
... when approaching tests there's a good deal of ways to approach the problem: end-to-end
testing, which involves your visitor clicking a thing and some other thing happening.
...And 5 more matches
Handling common JavaScript problems - Learn web development
previous overview: cross browser
testing next now we'll look at common cross-browser javascript problems and how to fix them.
... prerequisites: familiarity with the core html, css, and javascript languages; an idea of the high-level principles of cross browser
testing.
...(see using a task runner to automate
testing tools in a later article.) see eslint integrations for eslint options; jshint is supported out of the box by grunt, and also has other integrations available, e.g.
...And 4 more matches
Creating reftest-based unit tests
automated
testing usually compares output against an invariant, a "gold standard", that is determined to be correct.
...i have seen a case where the html file in the bug had a problem, but the checked-in version was "cleaned up" and not valid for
testing.
... reftests and preferences in order to use preferences that are not listed in the browser's built-in preferences files such as all.js (in other words, preferences that will not show up in about:config) it is necessary to add the preference to
testing/profiles/reftest/user.js.
...And 4 more matches
Release phase
you've setup up your local and remote environments, you've selected your l10n tools and projects, done some localization and even some
testing!
...depending on which branch you work on, the url of your repository might look like this: http://hg.mozilla.org/releases/l10n-central/x-
testing if you followed the koala or plain text approach, you probably already have a local clone of the repository.
... add the following lines to your ~/.ssh/config file, replacing user@host.domain with your mozilla ldap account name: host hg.mozilla.org user user@host.domain if you have already cloned the remote repository using the http protocol using this command: $ hg clone http://hg.mozilla.org/releases/l10n-central/x-
testing then you will need to edit the .hg/hgrc file (inside the x-
testing local clone) to tell mercurial to push using ssh.
...And 4 more matches
Index
now you might be interest in how to get the nss sources, building and
testing nss.
... 198 nss third-party code nss, security, third-party code this is a list of third-party code included in the nss repository, broken into two lists: code that can be compiled into the nss libraries, and code that is only used for
testing.
...use this option only after manually
testing each planned operation to check for warnings and to ensure that bypassing the prompts will cause no security lapses or loss of database integrity.
...And 4 more matches
Introduction to the JavaScript shell
the version() shell builtin is still there for
testing legacy features.
...you can use it as an interactive shell, in which you type javascript code at a prompt and get instant gratification, which is handy for experimenting or
testing new features.
... note: evalcx() is only useful for people doing deep internal work on the javascript engine, for
testing evalinsandbox-like environments in the shell.
...And 4 more matches
Targeting and hit detection - Web APIs
virtual object hit
testing detection of collisions with virtual objects usually doesn't actually involve
testing for intersection of the ray with one of the scene's polygons, as a typical scene may have hundreds or thousands of polygons, which makes direct tracing of rays to polygons impractical in most cases.
... instead, most applications find a way to simplify the implementation of their hit
testing algorithms.
... it's possible—or even likely—that whatever 3d graphics engine you're using offers hit
testing, especially if it's designed specifically for game development.
...And 4 more matches
Framework main features - Learn web development
testing all applications benefit from test coverage that ensures your software continues to behave in the way that you'd expect, and web applications are no different.
...
testing tools are not built into the frameworks themselves, but the command-line interface tools used to generate framework apps give you access to the appropriate
testing tools.
... each framework has extensive tools in its ecosystem, with capabilities for unit and integration
testing alike.
...And 3 more matches
Various MathML Tests
overview of presentation mathml elements
testing tensor indices <mmultiscripts>: r i1 j2 k3 ; this with <none/>, a qp i a bit of calculus: ∫ a b f ( x ) dx ∂ ∂ x f ( x , y ) + ∂ ∂ y f ( x , y ) here is the alphabet with invisible portions wrapped by <mphantom> in between: a b c d e f g h i j k l m n o p q r s t u v w x y z .
...
testing mathml <msub>: a b ; a i ; a i k
testing mathml <msup>: d b 2 a x 2 2 x ( 1 2 ) y a x .
...
testing mathml <munder>, <mover>, and <munderover>: abcd un abcd ov abcd under over .
...And 3 more matches
Performance
measuring add-on startup performance a guide for add-on developers on how to set up a performance
testing environment.
... automated performance
testing and sheriffing information on automated performance
testing and sheriffing at mozilla.
...it is used as part of mozilla's continuous integration
testing.
...And 3 more matches
AsyncTestUtils extended framework
the asynctestutils extended framework is one mechanism for
testing the mailnews component of thunderbird.
... see mailnews automated
testing for a description of the other
testing mechanisms.
...wing lines, add them at the top of your test file (before the lines shown above): load("../../mailnews/resources/maildirservice.js"); load("../../mailnews/resources/mailtestutils.js"); at the bottom of the test file, add the following: var tests =[ // list your tests here ]; function run_test() { configure_message_injection({mode: "local"}); async_run_tests(tests); } asynchronous
testing basics why do we need it?
...And 3 more matches
Mozilla
browser chrome tests the browser chrome test suite is an automated
testing framework designed to allow
testing of application chrome windows using javascript.
...these articles provide important guides and references to ensuring the code you write is secure, including both design recommendations and
testing guidelines.
... developer guide there are lots of ways to contribute to the mozilla project: coding,
testing, improving the build process and tools, or contributing to the documentation.
...And 3 more matches
Setting Up a Development Environment - Archive of obsolete content
these define the extension name, the extension id (as specified in install.rdf) and the name of the profile directory where the extension will be installed during development and
testing.
...once you're
testing and debugging your code, you'll find that constantly building and installing an xpi can be very tedious.
...it's much better to have a different "version" of firefox for
testing.
...And 2 more matches
Index of archived content - Archive of obsolete content
nd inheritance content processes getting started modules private properties firefox compatibility module structure of the sdk porting the library detector program id sdk api lifecycle sdk and xul comparison
testing the add-on sdk two types of scripts working with events xul migration guide high-level apis addon-page base64 clipboard context-menu hotkeys indexed-db l10n notifications ...
... getting started (jpm) getting started (cfx) list open tabs listen for page load listening for load and unload localization logging modifying web pages based on url modifying the page hosted by a tab open a web page troubleshooting unit
testing using xpcom without chrome using third-party modules (jpm) bootstrapped extensions code snippets alerts and notifications autocomplete bookmarks boxes canvas code snippets cookies customizing t...
...umentation activex control for hosting netscape plug-ins in ie archived spidermonkey docs file object open merging tracemonkey repo spidermonkey coding conventions autodial for windows nt automated
testing tips and tricks automatic mozilla configurator enabling quicklaunch for all users how mozilla finds its configuration files how thunderbird and firefox find their configuration files introduction kill the xul.mfl file for good locked config settings other mozilla customization pag...
...And 2 more matches
List of Mozilla-Based Applications - Archive of obsolete content
actional web scraping and for web clipping cometbird another firefox mod modified version of firefox correo email couac (fr) web-based email and jabber app couchdb document-oriented database uses spidermonkey courtanet benefit (fr) underwriting software for french insurance brokers crosscheck browserless
testing framework uses mozilla rhino crowbar server tool cycloctopus screen scraping console cyclone3 content management system danger mobile platform uses gecko on the server side -- no longer active?
...browser web browser usage stats from global stats fossamail email client for windows platform, based on mozilla thunderbird developed by moonchild productions, creator of the pale moon web browser flickr uploadr image upload tool see flickr uploadr: open source and powered by xulrunner foxkeh clock clock frizione javascript development,
testing and deployment environment uses mozilla rhino geckofx embeddable gecko gjs javascript bindings for gnome globalmojo browser that raises money for your favorite causes gluescript a javascript engine which can be used as a general purpose language uses mozilla spidermonkey and formerly called wxjavascript gnome operating ...
...t i’m not sure if new version still does hacketyhack little coders helma web application framework uses mozilla rhino holt mcdougal cd-roms educational cd-roms activity generator and lab generator are both based on custom firefox distributions houdini 3d animation tools uses gecko in embedded help viewer httpunit automated
testing framework uses mozilla rhino htmlunit browser for java programs uses mozilla rhino hyperinfo web application plat form uses goeckofx ibm websphere lombardi edition business process management system uses mozilla rhino and mozilla xpcom eclipse plug-in.
...And 2 more matches
XUL accessibility guidelines - Archive of obsolete content
testing keyboard access to test keyboard accessibility, simply unplug or disable your mouse and attempt to use your application with only your keyboard.
...
testing assistive information
testing with a screen reader is in many ways the best test, because both the keyboard navigation and underlying semantics/structure of the ui can be tested at the same time.
...
testing display verify that your application is functional and pleasant looking using user-defined font and color settings.
...And 2 more matches
Implementing feature detection - Learn web development
previous overview: cross browser
testing next feature detection involves working out whether a browser supports a certain block of code, and running different code depending on whether it does (or doesn't), so that the browser can always provide a working experience rather than crashing/erroring in some browsers.
... prerequisites: familiarity with the core html, css, and javascript languages; an idea of the high-level principles of cross-browser
testing.
... css you can write tests for css features by
testing for the existence of element.style.property (e.g.
...And 2 more matches
Client-side tooling overview - Learn web development
post-development — tools that are useful after you have written your code, such as
testing and deployment tools.
... also well-worth looking at is webhint, a configurable, open-source linter for the web that surfaces best practices including approaches to accessibility, performance, cross-browser compatibility via mdn's browser compatibility data, security,
testing for pwas, and more.
...this includes the deployment processes,
testing frameworks, auditing tools, and more.
...And 2 more matches
Shell global objects
shell principals are toys, meant only for
testing; one shell principal subsumes another if its set bits are a superset of the other's.
...
testing functions
testing functions are available also on firefox via components.utils.getjs
testingfunctions() functions always available gc([obj] | 'zone' [, 'shrinking']) run the garbage collector.
...required for
testing that savestack properly handles native frames.
...And 2 more matches
TPS Tests
it's name stands for
testing and profiling tool for sync (which is a misnomer, since it doesn't do any profiling), and it should not be confused with the similarly named tests in talos.
... steps get the source code clone mozilla-central (choose your flavor): hg clone hg.mozilla.org/mozilla-central or git clone github.com/mozilla/gecko-dev cd into the tps folder cd
testing/tps create the environment i suggest the path to be outside of the mc source tree python create_venv.py --username=%email% --password=%password% %path% note: if you are updating the tps environment and want to keep your existing config (eg, the existing username and password), you should instead execute: python create_venv.py --keep-config %path% activate the environment ...
...for example, a (partial) tps config for
testing against stage might look like: { // ...
...And 2 more matches
Array.prototype.find() - JavaScript
the find() method returns the value of the first element in the provided array that satisfies the provided
testing function.
...(it’s similar to findindex(), but checks each element for equality with the value instead of using a
testing function.) if you need to find if a value exists in an array, use array.prototype.includes().
... again, it checks each element for equality with the value instead of using a
testing function.
...And 2 more matches
SeaMonkey - making custom toolbar (SM ver. 1.x) - Archive of obsolete content
copy the following content, and paste it into the new file: custombutton = { 1: function () { alert("just
testing") }, } there is nothing to customize for now.
...
testing your new button restart seamonkey.
...remove the line: alert("just
testing") and replace it with javascript code that does whatever you want to do.
...for example, you could add this code for
testing: 2: function () { alert("just
testing again") }, create an image for the new button, naming the file button-2s.png.
Custom toolbar button - Archive of obsolete content
copy the following content, and paste it into the new file: custombutton = { 1: function () { alert("just
testing") }, } there is nothing to customize for now.
...
testing your new button restart the application.
... remove the line: alert("just
testing") and replace it with javascript code that does whatever you want to do.
...for example, you could add this code for
testing: 2: function () { alert("just
testing again") }, create an image for the new button, naming the file button-2.png.
Archived Mozilla and build documentation - Archive of obsolete content
automated
testing tips and tricks automatic mozilla configurator ankh8 automatically handle failed asserts in debug builds as of 2004-12-8, it is now possible to automatically handle failed asserts in debug builds of mozilla for windows.
... new skin notes devmo has a new skin that is ready for
testing.
...this is currently just a preview, but we would appreciate help with
testing.
...the contents of this standalone xpcom in general are: stress
testing consume.exe from the windows server 2003 resource kit tools can consume various resources: physical memory, cpu time, page file, disk space and even the kernel pool.
Index - MDN Web Docs Glossary: Definitions of Web-related terms
162 fuzz
testing firefox, fuzzing, mozilla, qa, security,
testing fuzzing is a technique for
testing software using automated tools to provide invalid or unexpected input to a program or function in a program, then checking the results to see if the program crashes or otherwise acts inappropriately.
... 164 gij automation, codingscripting, gaia, integration, tests gaia integration
testing.
... 426 smoke test composing, glossary, intro, qa,
testing a smoke test consists of functional or unit tests of critical software functionality.
... smoke
testing comes before further, in-depth
testing.
What is accessibility? - Learn web development
see our cross-browser
testing screen readers guide for more details on using them.
...you can find more details about keyboard controls in our cross browser
testing using native keyboard accessibility section.
... when planning your project, factor accessibility
testing into your
testing regime, just like
testing for any other important target audience segment (e.g.
...test early and often, ideally running automated tests to pick up on programmatically detectable missing features (such as missing image alternative text or bad link text — see element relationships and context) and doing some
testing with disabled user groups to see how well more complex site features work for them.
Handling common HTML and CSS problems - Learn web development
previous overview: cross browser
testing next with the scene set, we'll now look specifically at the common cross-browser problems you will come across in html and css code, and what tools can be used to prevent problems from happening, or fix problems that occur.
... prerequisites: familiarity with the core html, css, and javascript languages; an idea of the high level principles of cross browser
testing.
...if you are unsure, you can also find out by doing some
testing directly in browsers.
... previous overview: cross browser
testing next in this module introduction to cross browser
testing strategies for carrying out
testing handling common html and css problems handling common javascript problems handling common accessibility problems implementing feature detection introduction to automated
testing setting up your own test automation environment ...
Multiple Firefox profiles
web developers might want a secondary profile for
testing websites, apps, or other projects on different firefox channels.
... for qa,
testing, and bug triaging contributors, you may want to have multiple development versions of firefox installed, each with its own profile.
... creating new profiles for
testing can keep you from losing your preferences, bookmarks, and history.
...the beta channel contains the features that are expected to be in the next release of firefox and are in final stages of
testing.
nsIDOMWindowUtils
pruint32 comparecanvases( in nsidomhtmlcanvaselement acanvas1, in nsidomhtmlcanvaselement acanvas2, out unsigned long amaxdifference ); parameters acanvas1 acanvas2 amaxdifference return value computeanimationdistance() method for
testing nsstyleanimation::computedistance.
... this is easier to implement than adding our property restrictions to this api, and is sufficient for the present
testing requirements (which are essentially
testing 'color').
... aflushlayout if true, layout is flushed before hit
testing begins.
... sendnativekeyevent() this method lets you create and send keyboard events to a dom window from a privileged context; for example, this can be used to automate
testing.
Index
the downsides are that we have had some bugs, it complicates and bloats the code, and it requires more
testing.
... 40 mailnews fakeserver mailnews, seamonkey, thunderbird fakeserver is a
testing server that implements a generic text-based protocol common to all major mailnews protocols (pop, imap, smtp, and nntp) designed for use in automated tests.
... 41 mailnews xpcshell-tests automated
testing, developing mozilla, mailnews, seamonkey, thunderbird mailnews xpcshell-tests are written and run in the same manner as the core xpcshell-tests.
... additionally, ad-hoc packages called try builds are made available on an as-needed basis to allow for
testing of certain patches, and are typically announced in related bug reports.
Thunderbird Binaries
additionally, ad-hoc packages called try builds are made available on an as-needed basis to allow for
testing of certain patches, and are typically announced in related bug reports.
... note: while beta builds have had some
testing, they should be considered preview only and should not be used in a production environment.
...if you wish to download nightly builds to help us test for the next release, please read the
testing page for where we need help.
...they should only be used for
testing purposes.
Index - Web APIs
normal hit
testing rules apply; the value of the pointer-events property on the element determines whether a point is considered to be within the fill.
...normal hit
testing rules apply; the value of the pointer-events property on the element determines whether a point is considered to be within the stroke.
... 4822 webglrenderingcontext.stencilfunc() api, method, reference, webgl, webglrenderingcontext the webglrenderingcontext.stencilfunc() method of the webgl api sets the front and back function and reference value for stencil
testing.
... 4823 webglrenderingcontext.stencilfuncseparate() api, method, reference, webgl, webglrenderingcontext the webglrenderingcontext.stencilfuncseparate() method of the webgl api sets the front and/or back function and reference value for stencil
testing.
Inputs and input sources - Web APIs
that's everything you need to be able to draw the targeting ray, determine what's being pointed at, do hit
testing, and so forth.
... this may or may not involve actually pointing at a particular object within the 3d world; you have to determine this yourself using hit
testing—that is, checking to see if the target ray intersects with any objects in your scene.
...this process is called hit
testing or collision detection.
... the approach you take to hit
testing depends very much on the specific needs of your app.
ARIA Test Cases - Accessibility
there are several purposes for providing this information: help browser vendors provide correct implementations help at vendors provide correct implementations inform authors as to what actually works reliably in general we're
testing with the latest public releases.
...these test files are not specifically for
testing aria.
...also, as a clever feature for at
testing, the firing of events (like event_object_statechange) can be invoked from the examples.
... window-eyes - - - - nvda - n/a - - zoom (leopard) pass n/a pass pass zoomtext - - - - orca - - - - description description for groupbox and for button (al) note: the description role is no longer necessary as long as aria-describedby is used; however, this test case is still useful for
testing aria-describedby.
Web applications and ARIA FAQ - Accessibility
several inspecting and debugging tools exist to help you test aria in action: object inspector on windows accessibility inspector on os x accprobe on linux firebug's dom inspector the accessibility inspector for firebug the audits tab in chrome devtools there are several free or open source screen readers that can be used to do hands-on
testing with aria.
... they include: orca for linux nvda for windows voiceover is built into os x when you're
testing with a screen reader, keep two key points in mind: casual
testing with a screen reader user can never replace feedback,
testing, and help from real users.
...try
testing with a variety of usability and accessibility techniques.
... other helpful
testing tools and techniques for aria-enabled applications and widgets: yahoo!'s aria bookmarklets fluid project's simple accessibility evaluation techniques where do aria discussions happen?
Implementing a Microsoft Active Accessibility (MSAA) Server - Accessibility
don't use msaa if you're not going to take it all the way via
testing with assistive technologies and working with at vendors.
...it is not "plug and play", and will take a lot of
testing/refinement before your solution works with any product.
... windowfromaccessibleobject depends on client-window relationship problem: unless certain rules are followed, windowfromaccessibleobject will break, causing the failure of accessibility
testing tools like accexplore.exe, and assistive technologies which require knowledge of the window class to know what app-specific configurations to run.
...it's very difficult to get vendors to spend time
testing an msaa implementation, send feedback or help find out why things aren't working.
Using feature queries - CSS: Cascading Style Sheets
the difference is that with a media query you are
testing something about the environment in which the web page is running, whereas with feature queries you are
testing browser support for css features.
... the value part of the property value pair matters more if you are
testing for new values of a particular property.
...
testing for lack of support in addition to asking the browser if it supports a feature, you can test for the opposite by adding in the not keyword: @supports not (property: value) { css rules to apply } the css inside the following example feature query will run if the browser does not support row-gap.
...
testing for more than one feature you may need to test support for more than one property in your feature query.
Event reference
pointerenter pointerevent pointer events pointing device is moved inside the hit-
testing boundary.
... pointerleave pointerevent pointer events pointing device is moved out of the hit-
testing boundary.
... pointerout pointerevent pointer events the pointing device moves out of the hit-
testing boundary or leaves detectable hover range.
... pointerover pointerevent pointer events the pointing device is moved into the hit-
testing boundary.
Writing forward-compatible websites - Developer guides
first, have a default code path that runs in unknown browsers and in the current and future versions of browsers you are
testing with.
...for example, if you have tested that your default code path runs properly in firefox aurora but firefox beta and the latest release have a bug that make your default code path fail, it is ok to treat the firefox version number that is in aurora at the moment of
testing as "current", and consider the beta version as a "past" version even though it hasn't been released to the general public yet.
...
testing test with all major engines test your code at least in firefox, chrome, safari, opera, and internet explorer.
... if you are following the advice given above so that you have a single code path for all current and unknown browsers,
testing that this single code path works in all the major engines makes it extremely probable that your code won't break in the future.
Array - JavaScript
array.prototype.every() returns true if every element in this array satisfies the
testing function.
... array.prototype.find() returns the found element in the array, if some element in the array satisfies the
testing function, or undefined if not found.
... array.prototype.findindex() returns the found index in the array, if an element in the array satisfies the
testing function, or -1 if not found.
... array.prototype.some() returns true if at least one element in this array satisfies the provided
testing function.
test/assert - Archive of obsolete content
implements the assert interface defined in the commonjs unit
testing specification version 1.1.
... usage to use the assert module, write a set of unit tests following the instructions in the unit
testing tutorial.
... the assert object's interface is defined by the commonjs unit
testing specification, version 1.1.
Setting up an extension development environment - Archive of obsolete content
development profile the use of a separate user profile for development can be advantageous, averting performance degradation from development related settings, and further isolating personal data (such as bookmarks, extensions, and settings) from your
testing environment.
...per tools, enables debugging thunderbird remotely using using firefox developer tools extension developer's extension a suite of tools for extension development (firefox) extension test an add-on which makes it easier to detect problems which will lead to rejection by addons.mozilla.org console² enhanced javascript console (firefox version, thunderbird version) javascript command for writing/
testing javascript on firefox windows inspect context open dom inspector at this node from inspect on context menu.
...useful for
testing debug symbols and the crash reporting system (firefox and thunderbird) javascript object examiner displays javascript object methods and properties for any available scope developer profile and devprefs sets up the development environment described above when installed (firefox and fennec) firefox extension proxy file extension files are normally installed in the user profile.
How to Write and Land Nanojit Patches - Archive of obsolete content
here's how to clone and build nanojit-central: $ hg clone ssh://hg.mozilla.org/projects/nanojit-central $ cd nanojit-central $ autoconf $ mkdir build $ cd build $ ../configure $ make $ make check learn and setup automated
testing for all three repositories.
... but don't push that update, as that should only be done by a member of that public repo.] once it passes
testing, file the patch to bugzilla (file a bug under the "nanojit" component in the "core" product) and get a review.
...you're done, but watch the tm/tr
testing results (tbpl or buildbot).
Running Tamarin acceptance tests - Archive of obsolete content
to run acceptance tests on the android shell see the "
testing the android shell" heading below.
...un regardless of results, then print the test run summary when finished --ascargs= : additional arguments to pass to asc.jar --vmargs= : additional arguments to pass to avmshell --random : run tests in random order --timeout : max time for testrun --verify : run a verify pass instead of running abcs --verifyonly : run a -dverifyonly pass: only checks test exitcode (only works with debugger vms)
testing the android shell the instructions above apply to running tests on an android device as well, but with a few differences.
...an emulator is ok for
testing a few abc files but for any consistency a real device is better.
Running Tamarin performance tests - Archive of obsolete content
to run performance tests on the android shell see '
testing the android shell' below.
... see the file header for details
testing the android shell the instructions above apply to running tests on an android device as well, but with a few differences.
...an emulator is ok for
testing a few abc files but for any consistency a real device is better.
XML in Mozilla - Archive of obsolete content
see the
testing and qa section for samples.
...see the
testing and qa section for samples.
...
testing and qa we have a lot of testcases linked to from the browser standards compliance qa page.
Using Remote XUL - Archive of obsolete content
the bar consists of a set of links organized into four main categories: the mozilla organization, developer docs,
testing, and tools.
... <?xml version="1.0"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <menubar> <menu label="the mozilla organization" /> <menu label="developer docs" /> <menu label="
testing" /> <menu label="tools" /> <button label="faq" /> <button label="search" /> </menubar> <iframe src="https://www.mozilla.org/" flex="1" /> </window> the menubar element is a container for a series of menus.
... /> <menuitem label="module owners" value="https://www.mozilla.org/owners.html" /> <menuitem label="hacking" value="https://www.mozilla.org/hacking/" /> <menuitem label="get the source" value="https://www.mozilla.org/source.html" /> <menuitem label="build it" value="https://www.mozilla.org/build/" /> </menupopup> </menu> <menu label="
testing"> <menupopup> <menuitem label="download" value="https://www.mozilla.org/releases/" /> <menuitem label="report a bug" value="https://bugzilla.mozilla.org/enter_bug.cgi?format=guided" /> <menuitem label="bugzilla" value="https://www.mozilla.org/bugs/" /> <menuitem label="bug writing" value="https://www.mozilla.org/quality/bug-writing-guidel...
Gecko Compatibility Handbook - Archive of obsolete content
set up browsers for
testing the various gecko-based browsers do not always contain netscape in the user-agent string.
...if possible, also download the actual clients (netscape, aol, compuserve) for
testing.
...
testing aol from within a firewall if you need to connect to aol via a corporate firewall, america online has registered tcp/ip ports 5190 and 11523 so you can communicate with the aol client software.
2006-09-29 - Archive of obsolete content
discussions extension based
testing - someone is in the process of writing a small extension that tests firefox's help in terms of table-of-contents and search looking for firefox triagers to evaluate a triage tool - a phd student is working on a way to assist triagers.
... help
testing helper extension - someone made a new extension.
... he needs help
testing it out and wants to know how to make an iframe loads not go into the history.
Browser Detection and Cross Browser Support - Archive of obsolete content
one of the earliest approaches to client side browser detection involved
testing whether the browser supported particular objects.
... an example of this approach involved
testing for the existence of the document.images object.
... feature oriented object detection is the
testing for the existence of specific objects before attempting to use them in a script.
Examples - Archive of obsolete content
</p> <p> <a href="http://validator.w3.org/check/referer"><img src="https://udn.realityripple.com/samples/8a/9e64asf935.png" alt="valid xhtml 1.0!" height="31" width="88" /></a> </p> </body> </html> before
testing this example by yourself, please read this.
... </p> <p> <a href="http://validator.w3.org/check/referer"><img src="https://udn.realityripple.com/samples/8a/9e64asf935.png" alt="valid xhtml 1.0!" height="31" width="88" /></a> </p> </body> </html> before
testing this example by yourself, please read this.
... </p> <p> <a href="http://validator.w3.org/check/referer"><img src="https://udn.realityripple.com/samples/8a/9e64asf935.png" alt="valid xhtml 1.0!" height="31" width="88" /></a> </p> </body> </html> before
testing this example by yourself, please read this.
Choosing Standards Compliance Over Proprietary Practices - Archive of obsolete content
quality assurance we know from experience that without rigorous
testing, our products can fail miserably when we introduce them into the market.
... that is why organizations also need to apply standards to quality
testing.
...by having a standardized set of test suites, the qa organization can easily maintain, verify, and certify the tests, and eliminate redundant
testing databases to ensure consistency and reliability.
Smoke Test - MDN Web Docs Glossary: Definitions of Web-related terms
smoke
testing comes before further, in-depth
testing.
... smoke
testing answers questions like "does the program start up correctly?" "do the main control buttons function?" "can you save a simple blank new test user account?" if this basic functionality fails, there is no point investing time in more detailed qa work at this stage.
... learn more general knowledge smoke
testing (software) on wikipedia ...
Mobile accessibility - Learn web development
summary of screenreader
testing on android and ios the most common mobile platforms have fully functional screen readers.
... note: for a more complete reference covering the voiceover gestures available and other hints on accessibility
testing on ios, see test accessibility on your device with voiceover.
...we also took you through the usage of the most common screenreaders to aid you in accessibility
testing.
WAI-ARIA basics - Learn web development
before you continue, you should get a screenreader
testing setup put in place, so you can test some of the examples as you go through.
... see our section on
testing screenreaders for more information.
...let's look at an example — our website-no-roles example (see it live) has the following structure: <header> <h1>...</h1> <nav> <ul>...</ul> <form> <!-- search form --> </form> </nav> </header> <main> <article>...</article> <aside>...</aside> </main> <footer>...</footer> if you try
testing the example with a screenreader in a modern browser, you'll already get some useful information.
Web fonts - Learn web development
you can use the font stack to specify preferable fonts, followed by web-safe alternatives, followed by the default system font, but this adds overhead in terms of
testing to make sure that your designs look ok with each font, etc.
...most of these services are subscription-based, with the notable exception of google fonts, a useful free service, especially for rapid
testing work and writing demos.
... you've reached the end of this article, and already did some skill
testing in our active learning sections, but can you remember the most important information going forward?
Server-side web frameworks - Learn web development
it contains a development server and debugger, and includes support for jinja2 templating, secure cookies, unit
testing, and restful request dispatching.
... built-in
testing facility and code formatter (deno fmt) (javascript) browser compatibility: deno programs that are written completely in javascript excluding the deno namespace (or feature test for it), should work directly in any modern browser.
... restful routes, plugins, commands, perl-ish templates, content negotiation, session management, form validation,
testing framework, static file server, cgi/psgi detection, and first-class unicode support.
Testopia
it is designed to be a generic tool for tracking test cases, allowing for
testing organizations to integrate bug reporting with their test case run results.
... though it is designed with software
testing in mind, it can be used to track
testing on virtually anything in the engineering process.
...this is not an trivial task, it takes time (it started in august 2014), and we decided that it was not a good idea to release half-baked code which still needs
testing to make sure we didn't regress anything.
The Firefox codebase: CSS Guidelines
testing to test for rtl layouts, you can go to about:config and set intl.uidirection to -1.
... colors for common areas of the firefox interface (panels, toolbar buttons, etc.), mozilla-central often comes with some useful css variables that are adjusted with the correct values for different platform configurations, so using those css variables can definitively save some
testing time, as you can assume they already work correctly.
...for
testing purposes, here is an example of a webextension theme.
Storage access policy: Block cookies from trackers
testing in firefox this cookie policy has been available in firefox since version 63.
...we’ve added several new features to firefox to make
testing easier.
... warning: be sure to remove these entries after you have finished
testing.
Assert.jsm
the assert.jsm javascript code module implements the commonjs unit
testing specification version 1.1, which provides a basic, standardized interface for performing in-code logical assertions with optional, customizable error reporting.
... to use it, you first need to import the code module into your javascript scope: components.utils.import("resource://
testing-common/assert.jsm"); the assert class offers methods for performing common logical assertions.
...ctual, expected, message, operator ); parameters failed indicates if the assertion failed or not actual the result of evaluating the assertion expected expected result from the test author message short explanation of the expected result operator operation qualifier used by the assertion method (ex: '==') examples custom reporter example components.utils.import("resource://
testing-common/assert.jsm"); let assert = new assert(); assert.setreporter(function customreporter(err, message, stack) { if (err) { do_report_result(false, err.message, err.stack); } else { do_report_result(true, message, stack); } }); ...
Index
7 l10n
testing with xcode firefox for ios, localization once you have your l10n
testing environment set up in xcode,
testing your firefox on ios localization is a breeze.
...now we'll walk you through performing some quality assurance
testing on your work to make sure you're on the right track.
...you've setup up your local and remote environments, you've selected your l10n tools and projects, done some localization and even some
testing!
MailNews
asynctestutils extended framework the asynctestutils extended framework is one mechanism for
testing the mailnews component of thunderbird.
... see mailnews automated
testing for a description of the other
testing mechanisms.
... mailnews automated
testing automated
testing is an increasingly significant and important part of mailnews development.
NSS tools : signtool
for
testing purposes only, you can create an object-signing certificate with netscape signing tool 1.3.
... when
testing is finished and you are ready to disitribute your software, you should obtain an object-signing certificate from one of two kinds of sources: * an independent certificate authority (ca) that authenticates your identity and charges you a fee.
... expires: tue may 19, 1998 test object signing cert issued by: test object signing cert (signtool 1.0
testing certificate (960187691)) expires: sun may 17, 1998 --------------------------------------- for a list including cas, use the -l option.
Creating JavaScript tests
if you are writing a jstests, additional
testing functionality is provided for you in shell.js files.
... performance
testing and general advice do not attempt to test the performance of engine features in the test suite.
...
testing your test run your new test locally before checking it in (or posting it for review).
Running Automated JavaScript Tests
(some js reftests will be skipped when run in the browser, as it lacks some shell-specific
testing functionality.) running jstests running jstests on a js shell the jstests shell harness is js/src/tests/jstests.py.
... developers will often want to use the -d option: jstests.py -d path_to_js_shell the -d option skips tests that are marked as randomly failing; random failures are usually just noise when being run for day-to-day developer
testing.
...thus, you can keep re
testing as you fix bugs and only the tests that failed the last time will run, speeding things up a bit.
Signing Mozilla apps for Mac OS X
while
testing and debugging for test and debug purposes, the easiest way to get a signing certificate is to use apple's keychain feature to create one.
... codesign -s mac-
testing -fv \ --keychain /users/user/library/keychains/mykeychain.keychain \ --resource-rules ./application.app/contents/_codesignature/coderesources \ --requirements '=designated => identifier "org.you.yourapp" and ( (anchor apple generic and certificate leaf[field.1.2.840.113635.100.6.1.9] ) or (anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] and certif...
...icate leaf[field.1.2.840.113635.100.6.1.13] and certificate leaf[subject.ou] = "43aq936h96"))' \ application.app or if you're using v2 signing, the command might look like this: codesign -s mac-
testing -fv --deep \ --keychain /users/user/library/keychains/mykeychain.keychain \ --requirements '=designated => ( (anchor apple generic and certificate leaf[field.1.2.840.113635.100.6.1.9] ) or (anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] and certificate leaf[field.1.2.840.113635.100.6.1.13] and certificate leaf[subject.ou] = "43aq936h96"))' \ application.app depending on your keychain preferences, the codesign command may display a popup asking for the password for the specified keychain.
XML Extras
qa and
testing there are some online tests for mainly exercising the http get method via xmlhttprequest.
...the qa owner will manage the tests associated with their component, act as qa contact for related bugs and help with regression
testing.
... help with
testing the components contained within the module.
Index
this is useful particularly when
testing for memory leaks, because normal garbage collection is conservative when javascript code is running to ensure that in-use memory isn't inadvertently collected.
... 64 nsiregistry xpcom:language bindings, xpconnect nsiregistry on mxr 65 xpcshell automated
testing, developing mozilla, guide, javascript, javascript:tools, tools, xpcom, xpcom:language bindings, xpconnect xpcshell is an xpconnect-enabled javascript shell.
... 68 withjsmodulesandchrome moved to howto 69 xpcshell reference automated
testing, developing mozilla, javascript, javascript:tools, tools, xpcom:language bindings, xpconnect the command-line syntax for xpcshell is: 70 xpcshell test manifest expressions qa,
testing xpcshell unit tests are run by specifying them in a manifest file.
MailNews fakeserver
fakeserver is a
testing server that implements a generic text-based protocol common to all major mailnews protocols (pop, imap, smtp, and nntp) designed for use in automated tests.
...using fakeserver in xpcshell tests since there are three different components of fakeserver, a total of four objects need to be set up in a fakeserver test on top of other
testing.
...on none the transaction the transaction is an object with two properties: us, and them; us is an array of responses we sent, them an array of commands received resettest none nothing prepares the server for the next test without closing the connection start port number nothing starts the server listening stop none nothing stops the server and closes the connection using fakeserver in qa
testing debug output from fakeservers it is possible to get the fakeservers to dump to the console the commands they have sent and received.
Debugging service workers - Firefox Developer Tools
testing a service worker cache if you are using your service worker to store your site assets in cache storage (using the cache api), which is essential for creating offline apps, it can be annoying to test the cache.
... these options make it much easier to remove a cache if it is required for
testing a code update.
... it is also worth knowing that if you are
testing an app's offline capabilities, you'll be able to see whether requests are being retrieved from a service worker-initiated cache rather than from the network by looking at network monitor.
Introduction to the DOM - Web APIs
document.getelementbyid(id) document.getelementsbytagname(name) document.createelement(name) parentnode.appendchild(node) element.innerhtml element.style.left element.setattribute() element.getattribute() element.addeventlistener() window.content window.onload window.scrollto()
testing the dom api this document provides samples for every interface that you can use in your own web development.
...the following screenshot gives you some idea of how interfaces can be grouped together for
testing.
...however, you design your test pages,
testing the interfaces as you read about them is an important part of learning how to use the dom effectively.
WebGLRenderingContext.stencilFunc() - Web APIs
the webglrenderingcontext.stencilfunc() method of the webgl api sets the front and back function and reference value for stencil
testing.
... examples the stencil
testing is disabled by default.
... to enable or disable stencil
testing, use the enable() and disable() methods with the argument gl.stencil_test.
WebGLRenderingContext.stencilFuncSeparate() - Web APIs
the webglrenderingcontext.stencilfuncseparate() method of the webgl api sets the front and/or back function and reference value for stencil
testing.
... examples the stencil
testing is disabled by default.
... to enable or disable stencil
testing, use the enable() and disable() methods with the argument gl.stencil_test.
WebGLRenderingContext.stencilOp() - Web APIs
zpass a glenum specifying the function to use when both the stencil test and the depth test pass, or when the stencil test passes and there is no depth buffer or depth
testing is disabled.
... examples the stencil
testing is disabled by default.
... to enable or disable stencil
testing, use the enable() and disable() methods with the argument gl.stencil_test.
WebGLRenderingContext.stencilOpSeparate() - Web APIs
zpass a glenum specifying the function to use when both the stencil test and the depth test pass, or when the stencil test passes and there is no depth buffer or depth
testing is disabled.
... examples the stencil
testing is disabled by default.
... to enable or disable stencil
testing, use the enable() and disable() methods with the argument gl.stencil_test.
Movement, orientation, and motion: A WebXR example - Web APIs
; function renderscene(gl, view, programinfo, buffers, texture, deltatime) { const xrotationfortime = (xrotationdegreespersecond * radians_per_degree) * deltatime; const yrotationfortime = (yrotationdegreespersecond * radians_per_degree) * deltatime; const zrotationfortime = (zrotationdegreespersecond * radians_per_degree) * deltatime; gl.enable(gl.depth_test); // enable depth
testing gl.depthfunc(gl.lequal); // near things obscure far things if (enablerotation) { mat4.rotate(cubematrix, // destination matrix cubematrix, // matrix to rotate zrotationfortime, // amount to rotate in radians [0, 0, 1]); // axis to rotate around (z) mat4.rotate(cubematrix, // destination matrix cub...
... after enabling and configuring depth
testing, we check the value of the enablerotation constant to see if rotation of the cube is enabled; if it is, we use glmatrix to rotate the cubematrix (representing the cube's current orientation relative to the world space) around the three axes.
...add collision
testing or hit
testing, or the ability to change the texture of each face of the cube.
Using the Web Storage API - Web APIs
testing for availability note: this api is available in current versions of all major browsers.
...
testing for availability is necessary only if you must support very old browsers, such as internet explorer 6 or 7, or in the limited circumstances described below.
...
testing whether your storage has been populated to start with, in main.js, we test whether the storage object has already been populated (i.e., the page was previously accessed): if(!localstorage.getitem('bgcolor')) { populatestorage(); } else { setstyles(); } the storage.getitem() method is used to get a data item from storage; in this case, we are
testing to see whether the bgcolor item exists; ...
JavaScript modules - JavaScript
other differences between modules and standard scripts you need to pay attention to local
testing — if you try to load the html file locally (i.e.
...you need to do your
testing through a server.
...you need to do your
testing through a server.
BigInt64Array - JavaScript
bigint64array.prototype.find() returns the found value in the array if an element in the array satisfies the provided
testing function, or undefined if not found.
... bigint64array.prototype.findindex() returns the found index in the array if an element in the array satisfies the provided
testing function, or -1 if not found.
... bigint64array.prototype.some() returns true if at least one element in this array satisfies the provided
testing function.
BigUint64Array - JavaScript
biguint64array.prototype.find() returns the found value in the array if an element in the array satisfies the provided
testing function, or undefined if not found.
... biguint64array.prototype.findindex() returns the found index in the array if an element in the array satisfies the provided
testing function, or -1 if not found.
... biguint64array.prototype.some() returns true if at least one element in this array satisfies the provided
testing function.
Float32Array - JavaScript
float32array.prototype.find() returns the found value in the array, if an element in the array satisfies the provided
testing function or undefined if not found.
... float32array.prototype.findindex() returns the found index in the array, if an element in the array satisfies the provided
testing function or -1 if not found.
... float32array.prototype.some() returns true if at least one element in this array satisfies the provided
testing function.
Float64Array - JavaScript
float64array.prototype.find() returns the found value in the array, if an element in the array satisfies the provided
testing function or undefined if not found.
... float64array.prototype.findindex() returns the found index in the array, if an element in the array satisfies the provided
testing function or -1 if not found.
... float64array.prototype.some() returns true if at least one element in this array satisfies the provided
testing function.
Int16Array - JavaScript
int16array.prototype.find() returns the found value in the array, if an element in the array satisfies the provided
testing function or undefined if not found.
... int16array.prototype.findindex() returns the found index in the array, if an element in the array satisfies the provided
testing function or -1 if not found.
... int16array.prototype.some() returns true if at least one element in this array satisfies the provided
testing function.
Int32Array - JavaScript
int32array.prototype.find() returns the found value in the array, if an element in the array satisfies the provided
testing function or undefined if not found.
... int32array.prototype.findindex() returns the found index in the array, if an element in the array satisfies the provided
testing function or -1 if not found.
... int32array.prototype.some() returns true if at least one element in this array satisfies the provided
testing function.
Int8Array - JavaScript
int8array.prototype.find() returns the found value in the array, if an element in the array satisfies the provided
testing function or undefined if not found.
... int8array.prototype.findindex() returns the found index in the array, if an element in the array satisfies the provided
testing function or -1 if not found.
... int8array.prototype.some() returns true if at least one element in this array satisfies the provided
testing function.
TypedArray - JavaScript
typedarray.prototype.find() returns the found value in the array, if an element in the array satisfies the provided
testing function, or undefined if not found.
... typedarray.prototype.findindex() returns the found index in the array, if an element in the array satisfies the provided
testing function or -1 if not found.
... typedarray.prototype.some() returns true if at least one element in this array satisfies the provided
testing function.
Uint16Array - JavaScript
uint16array.prototype.find() returns the found value in the array, if an element in the array satisfies the provided
testing function or undefined if not found.
... uint16array.prototype.findindex() returns the found index in the array, if an element in the array satisfies the provided
testing function or -1 if not found.
... uint16array.prototype.some() returns true if at least one element in this array satisfies the provided
testing function.
Uint32Array - JavaScript
uint32array.prototype.find() returns the found value in the array, if an element in the array satisfies the provided
testing function or undefined if not found.
... uint32array.prototype.findindex() returns the found index in the array, if an element in the array satisfies the provided
testing function or -1 if not found.
... uint32array.prototype.some() returns true if at least one element in this array satisfies the provided
testing function.
Uint8Array - JavaScript
uint8array.prototype.find() returns the found value in the array, if an element in the array satisfies the provided
testing function or undefined if not found.
... uint8array.prototype.findindex() returns the found index in the array, if an element in the array satisfies the provided
testing function or -1 if not found.
... uint8array.prototype.some() returns true if at least one element in this array satisfies the provided
testing function.
Uint8ClampedArray - JavaScript
uint8clampedarray.prototype.find() returns the found value in the array, if an element in the array satisfies the provided
testing function or undefined if not found.
... uint8clampedarray.prototype.findindex() returns the found index in the array, if an element in the array satisfies the provided
testing function or -1 if not found.
... uint8clampedarray.prototype.some() returns true if at least one element in this array satisfies the provided
testing function.
Low-Level APIs - Archive of obsolete content
test/assert implements the assert interface defined in the commonjs unit
testing specification version 1.1.
... test/utils helper methods used in the commonjs unit
testing suite.
jpm - Archive of obsolete content
when
testing your add-on, you will need to use the -b option to jpm run.
... jpm test see the tutorial on unit
testing and the reference documentation for the assert module for more details on this.
Add-on SDK - Archive of obsolete content
the sdk includes javascript apis, which you can use to create add-ons and tools for creating, running,
testing, and packaging add-ons.
... development techniques learn about common development techniques, such as unit
testing, logging, creating reusable modules, localization, and mobile development.
Sidebar - Archive of obsolete content
he code below calls a function defined in the sidebar's context: var sidebarwindow = document.getelementbyid("sidebar").contentwindow; // verify that our sidebar is open at this moment: if (sidebarwindow.location.href == "chrome://yourextension/content/whatever.xul") { // call "yournotificationfunction" in the sidebar's context: sidebarwindow.yournotificationfunction(anyarguments); }
testing which sidebar is open the sidebar content may contain different panels (bookmarks, history, webpanel, etc.) and sometimes one wants to only act on the sidebar when it contains a specific panel.
... the good practice to determine which sidebar is open at a time is by
testing in location property, which is a chrome url: var sidebarwindow = document.getelementbyid("sidebar").contentwindow; if (sidebarwindow.location.href == "chrome://yourextension/content/whatever.xul") { // act on the sidebar content } for example to test if the web panel from firefox is open: var sidebarwindow = document.getelementbyid("sidebar").contentwindow; if (sidebarwindow.location.href == "chrome://browser/content/web-panels.xul") { // act on the sidebar content only if it is the web panels } accessing the browser.xul window from a sidebar script see accessing the elements of the top-level document from a child window section of working with windows in chrome code.
JXON - Archive of obsolete content
\" new-line:\n" empty elements will become null: <root><nil/><empty></empty></root> becomes { "nil": null, "empty": null } if all sibling elements have the same name, they become an array <root><item>1</item><item>2</item><item>three</item></root> becomes [1, 2, "three"] mixed mode text-nodes, comments and attributes get absorbed: <root version="1.0">
testing<!--comment--><element test="true">1</element></root> becomes { "element": true } namespaces get absorbed, and prefixes will just be part of the property name: <root xmlns:ding="http://zanstra.com/ding"><ding:dong>binnen</ding:dong></root> becomes { "ding:dong" : "binnen" } note: our algorithms comply with points 2, 3, 4 and 7.
... true, wend: false, "only-if": null } within a string, closing elements "</" are escaped as "<\/" <root><![cdata[<script>alert("yes");</script>]]></root> becomes { script: "<script>alert(\"yes\")<\/script>" } dates are created as new date objects <root>2006-12-25</root> becomes new date(2006, 12 - 1, 25) attributes and comments are shown as comments (for
testing purposes): <!--
testing--><root><test version="1.0">123</test></root> becomes /*
testing */ { test /* @version = "1.0" */ : 123} a bit of indentation is done, to keep things legible note: our algorithms comply with the point 3 (but without month decrease).
No Proxy For configuration - Archive of obsolete content
abstract this document provides a comprehensive discussion of the manual proxy feature "no proxy for:", including configuration issues,
testing and bugs.
...
testing contributors can test this feature, even without a proxy server, using a "negative proxy server test".
JavaScript Client API - Archive of obsolete content
please note that usage of the sync apis is governed by a terms of service: by accessing or using the firefox sync apis in connection with the development of your own client software to access the firefox sync services (a “third party client”), you acknowledge that you will need to install and use a local version of the firefox sync server for multiple account
testing and that any use of mozilla’s hosted firefox sync services is subject to mozilla’s firefox sync terms of service at https://services.mozilla.com/tos/.
...
testing and debugging your engine set observers in the tracker to tell when your datatype changes, after which the score needs to be set.
Table Layout Regression Tests - Archive of obsolete content
while the information on the layout debugger is still useful, the
testing information is much less relevant now than it has been, as the "rtest"
testing framework described here has been superseded by the reftest framework.
... as you will probably run your normal mozilla in parallel with the
testing issue then: set moz_no_remote=1 at the command prompt.
Complete - Archive of obsolete content
for example, if your locale is fr-fr, it gets the description from: locale/fr-fr/allcustom/install.properties
testing a locale to test the alternative locale, install the extension in the normal way.
...
testing a theme to test a theme in seamonkey, choose view – apply theme, then choose the theme.
Using nsIXULAppInfo - Archive of obsolete content
obtaining platform version information is done like this: var appinfo = components.classes["@mozilla.org/xre/app-info;1"] .getservice(components.interfaces.nsixulappinfo); var platformver = appinfo.platformversion; var platformbuildid = appinfo.platformbuildid; getting nsixulappinfo in xpcshell tests in firefox 21, a
testing module was added that provides access to app info during the execution of xpcshell tests.
...cu.import("resource://
testing-common/appinfo.jsm"); updateappinfo(); older versions as stated above, older mozilla 1.7-based applications do not support nsixulappinfo.
Accessibility/XUL Accessibility Reference - Archive of obsolete content
groupbox <groupbox> <caption label="<!--group label-->" /> <hbox> <button label="<!--button text-->" /> </hbox> </groupbox> iframe jaws 7.10 issues
testing with jaws 7.10, use of an iframe element causes many, unpredictable issues with xul inside of the iframe.
... tabbrowser jaws 7.10 issues
testing with jaws 7.10, use of a tabbrowser element causes many, unpredictable issues with xul inside of the iframe.
2006-10-06 - Archive of obsolete content
ffx 2 rc2
testing today l10n builds were completed was completed and ready for test.
... calendar localization update rc1 for sunbird 0.3 is out now and ready for
testing.
2006-10-20 - Archive of obsolete content
summary: mozilla.dev.quality - october 13-october 20, 2006 announcements completed rc3
testing - the key
testing activities for rc3 has been completed.
... discussions none for this week meetings upcoming firefox test day -
testing will be emphasized on ajax/web 2.0, dhtml, and plugin heavy sites!
2006-10-27 - Archive of obsolete content
summary: mozilla.dev.quality - october 20-october 27, 2006 announcements firefox & thunderbird 1.5.0.8 candidate builds available for
testing!
... cross-domain
testing - someone is suggesting that there needs to be some way of running cross-domain tests (security, web compat, etc), and is wondering if it's possible with the current test http server?
2006-11-17 - Archive of obsolete content
discussions
testing accesskey conflicts discussion about the complexity of access keys and how to detect conflicts there in the l10n community.
... reflow branch
testing wanted l.
NSPR Release Engineering Guide - Archive of obsolete content
feature complete update ...pr/include/prinit.h with release numbers build all targets, debug and optimized on all platforms using local directories run the test suite on all targets verify release numbers show up in binaries resolve
testing anomalies tag the tree with nsprpub_release_x_y_z_beta beta release checkout a whole new tree using the tag from above build all targets, debug and optimized on all platforms using the command: gmake release mdist=<dir>/mdist build_number=vx.y.z [build_opt=1 | use_debug_rtl=1] copy the bits from mdist to /share/builds/components/nspr20/.vx.y.z 1 run explode.pl run the test sui...
...te on all targets, using binaries & headers from shipped bits resolve
testing anomalies tag the tree with nsprpub_release_x_y[_z] release candidate checkout a whole new tree using tag (including fixes) tag the treey with nsprpub_release_x_y_z build all targets, debug and optimized on all platforms using the command: gmake release mdist=<dir>/mdist build_number=vx.y.z [build_opt=1 | use_debug_rtl=1] copy the bits from mdist to /share/builds/components/nspr20/.vx.y.z in /share/builds/components/nspr20/ run the following scripts: explode.pl rename.sh symlink.sh rtm bits rename the .vx.y.z directory to vx.y.z (remove the hidden directory 'dot').
3D collision detection - Game development
aabb
testing whether a sphere and an aabb are colliding is slightly more complicated, but still simple and fast.
...this is overkill, however —
testing all the vertices is unnecessary, as we can get away with just calculating the distance between the aabb's closest point (not necessarily a vertex) and the sphere's center, seeing if it is less than or equal to the sphere's radius.
Visual-js game engine - Game development
save on drop menu or better with ctrl+s before
testing in browsers.
... adding new script explanation : after adding new script and save script if you have extra changes , open starter/run.js and you will found line : sys.script.load("scripts/new_script.js") ctrl+s use from menu run->choose browser for
testing .
Gecko FAQ - Gecko Redirect 1
so long as qa
testing and test case development continues, there will always be known bugs at any given point in time in the open-source gecko codebase, and it follows that every commercial product that has ever shipped and ever will ship based on gecko will have known bugs at the time of its release.
... content developers are sick and tired of developing and
testing every single web page multiple times in order to support the different, incompatible, proprietary doms of browsers from different vendors.
Debugging CSS - Learn web development
css validator html validator is the property and value supported by the browser you are
testing in?
...if the property or value you are using is not supported by the browser you are
testing in then nothing will break, but that css won't be applied.
Flexbox - Learn web development
however you should be aware that there are still older browsers in use that don't support flexbox (or do, but support a really old, out-of-date version of it.) while you are just learning and experimenting, this doesn't matter too much; however if you are considering using flexbox in a real website you need to do
testing and make sure that your user experience is still acceptable in as many browsers as possible.
... we discuss strategies for overcoming cross browser support issues in our cross browser
testing module.
Supporting older browsers - Learn web development
testing older browsers with the majority of browsers supporting flexbox and grid, it can be reasonably hard to test older browsers.
... one way is to use an online
testing tool such as sauce labs, as detailed in the cross browser
testing module.
Fundamental text and font styling - Learn web development
on the other hand, cursive and fantasy are less predictable and we recommend using them very carefully,
testing as you go.
... you've reached the end of this article, and already did some skill
testing in our active learning section, but can you remember the most important information going forward?
Common questions - Learn web development
how do you set up a local
testing server?
... this article explains how to set up a simple local
testing server on your machine, and the basics of how to use it.
The web and web standards - Learn web development
testing tools that can be used to run tests to show whether your code is behaving as you intended it to.
...it also involves a lot of
testing to see if anything fails in certain browsers, and then more work to fix those failures.
Responsive images - Learn web development
note: when
testing this with a desktop browser, if the browser fails to load the narrower images when you've got its window set to the narrowest width, have a look at what the viewport is (you can approximate it by going into the browser's javascript console and typing in document.queryselector('html').clientwidth).
...when
testing it with a mobile browser, you can use tools like firefox's about:debugging page to inspect the page loaded on the mobile using the desktop developer tools.
JavaScript performance - Learn web development
often times third party scripts and apis are added, including a/b
testing, tracking pixels, and features like maps and support features.
...often times third party scripts and apis are added, including a/b
testing, tracking pixels, and features like maps and support features.
Ember app structure and componentization - Learn web development
testing is outside the scope of this tutorial, although generally
testing should be implemented as you develop, rather than after, otherwise it tends to be forgotten about.
... if you're curious about
testing, or why you would want to have automated tests, check out the official ember tutorial on
testing.
React resources - Learn web development
state and lifecycle in the react docs intro to react in the react docs read about javascript classes at mdn
testing create-react-app provides some tools for
testing your application out of the box — you may have deleted the relevant files earlier in the tutorial.
... the documentation for create-react-app covers some basics for
testing.
Gecko info for Windows accessibility vendors
(i recommend sdk 1.3 because the msaa sdk 2.0 doesn't come with the source code to the
testing tools.
... mfcembed
testing client: this is a very simple package, great for
testing basic html accessibility with your products and the gecko rendering engine.
Mozilla's Section 508 Compliance
window-eyes support in
testing (must use very latest 1.8 alpha
testing builds and special build from window-eyes).
... complete, but needs
testing.
ZoomText
happy
testing!
...send me email so that i'm aware that you're
testing and let me know what bugs you're finding.
Browser chrome tests
the browser chrome test suite is an automated
testing framework designed to allow
testing of application chrome windows using javascript.
...you should attempt to reduce the side effects of the
testing code and "clean up" after yourself, to avoid influencing other tests.
Eclipse CDT
select the arguments tab and enter any args you want to pass to firefox (such as "--no-remote -p my-
testing-profile").
... this can be useful if you need to get certain bug fixes, or to help with
testing to make sure that new eclipse bugs that affect its use with mozilla don't get shipped.
mach
bugs against
testing commands should be filed somewhere in the
testing product.
...this includes things related to
testing and packaging.
Developer guide
there are lots of ways to contribute to the mozilla project: coding,
testing, improving the build process and tools, or contributing to the documentation.
... managing multiple profiles when working with prerelease versions of firefox, it's often helpful to have multiple firefox profiles, such as one for each channel, or for different kinds of
testing.
How test harnesses work
the python harness communicates with the browser by inserting an extension in the
testing profile or uses marionette's wire protocol to drive the browser.
... python runner the python runner: sets up the
testing environment sets up environment variables (mozrunner, currently) creates a profile (mozprofile via mozrunner) sets appropriate test preferences inserts a shim extension in the profile (for non-marionette tests) gathers the tests (manifestdestiny) potentially sets up an http server for test data (mozhttpd) invokes the binary (mozrunner) it is the job of the shim extension to shut down the browser logging (mozlog, in theory) (run tests, accrue results) cleanup: shutdown the browser check for crashes (mozcrash) reporting (moztest) marionette tests list of
testing extensions pageloader (talos) mochitest: //github.com/realityripple/uxp/blob/master/
testing/mochitest/i...
Creating a New Protocol
it is acceptable to use synchronous calls on jpw wrappers for
testing purposes.
... it may be possible to test protocols unrelated to a particular window using the xpcshell
testing framework, which has additional primitives in electrolysis for launching and running js commands in a content process.
Localization quick start guide
we will take you through the steps to get started, from the initial environment setup to
testing and releasing your own localization.
... qa phase l10n
testing tutorials.
SVN for Localizers
trunk refers to a set of files and directories that are in the
testing stage (i.e., staging).
... note: we use the terms stage and prod (abbreviations of the terms staging and production) to refer to
testing and publicly visible websites, respectively.
Localization sign-off reviews
we use this review process to perform quality assurance (qa)
testing on your l10n efforts.
...to put it simply, when we receive your request, we expect that you have spent time
testing your work and making sure all strings have been localized and that your changes are relatively functional.
Localization technical reviews
we use this review process to perform quality assurance (qa)
testing on your l10n efforts.
...to put it simply, when we receive your request, we expect that you have spent time
testing your work and making sure all strings have been localized and that your language pack is relatively functional.
Leak And Bloat Tests
the method of
testing memory bloat and leaks will be the same sequence of events, using the same set of test data.
...code locations the files specific to leak and bloat
testing are be stored in: http://mxr.mozilla.org/comm-central/source/mailnews/test/performance these files consist of: overlays (used to provide the hooks for the javascript): bloat/bloataddroverlay.xul bloat/bloatcomposeoverlay.xul bloat/bloatmainoverlay.xul javascript files (used to drive the tests): bloat/bloataddroverlay.js bloat/bloatcomposeoverlay.js bloat/bloatmainoverlay.js preference set...
Introduction to NSPR
since this
testing involves the monitored data, it must be done from within the monitor.
...philosophically, timeouts should be treated as explicit notifications, and therefore require the
testing of the monitored data upon resumption.
Getting Started With NSS
learn about getting the nss sources, building, and
testing.
... creating your patch seee our section on nss sources, building, and
testing to get started making your patch.
JSS
for information on downloading nss releases, see nss sources building
testing.
... release notes 4.3.1 release notes 4.3 release notes older release notes build instructions building jss 4.4.x building jss 4.3.x older build instructions download or view source download binaries, source, and javadoc view the source online
testing jss tests frequently asked questions jss faq information on jss planning can be found at wiki.mozilla.org, including: nss fips validation nss roadmap page community view mozilla cryptography forums...
NSS 3.12.4 release notes
2742: enable building util independently of the rest of nss bug 483653: unable to build certutil.exe for fennec/wince bug 485145: miscellaneous crashes in signtool on windows bug 485155: nss_enable_pkix_verify=1 causes sec_error_unknown_issuer errors bug 485527: rename the _x86_ macro in lib/freebl bug 485658: vfychain -p reports revoked cert bug 485745: modify fipstest.c to support cavs 7.1 drbg
testing bug 486304: cert7.db/cert8.db corruption when importing a large certificate (>64k) bug 486405: allocator mismatches in pk12util.c bug 486537: disable execstack in freebl x86_64 builds on linux bug 486698: facilitate the building of major components independently and in a chain manner by downstream distributions bug 486999: calling ssl_setsockpeerid a second time leaks the previous value bug 48700...
...bug 495717: unable to compile nss/cmd/certutil/keystuff.c on wince bug 496961: provide truncated hmac support for
testing tool fipstest bug 497002: lab required nspr-free freebl changes.
gtstd.html
the instructions that follow assume you are using the certificate database tool to set up both the server and client databases for
testing purposes.
...the ca, ssl server and ssl client certificates produced by these instructions work correctly for short term
testing purposes.
Network Security Services
tools,
testing, and other technical details build instructions for nss describe how to check out and build nss releases.
... pkcs #11 information documentation on pkcs #11 modules implementing pkcs #11 for nss the strings nss uses to load pkcs #11 modules pkcs #11 faq using the jar installation manager to install a pkcs #11 cryptographic module pkcs #11 conformance
testing - archived version ca certificates pre-loaded into nss mozilla ca certificate policy list of pre-loaded ca certificates consumers of this list must consider the trust bit setting for each included root certificate.
Shumway
testing and what to do in case of trouble the first step is to directly test your flash content.
... limitations of shumway might be encountered through
testing.
SpiderMonkey Build Documentation
developer (debug) build for developing and debugging spidermonkey itself, it is best to have both a debug build (for everyday debugging) and an optimized build (for performance
testing), in separate build directories.
... $ ./js-config --libs # example output: -l/usr/local/lib -lmozjs -l/usr/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -ldl -lm -lm -ldl
testing spidermonkey run ${builddir}/dist/bin/js y.js and check if appropriate output is printed.
Index
2 creating javascript tests automated
testing, build documentation, guide, qa, spidermonkey in which test suite does your new test belong?
... 520 running automated javascript tests automated
testing, build documentation, guide, qa, spidermonkey the jstests shell harness is js/src/tests/jstests.py.
SpiderMonkey 1.8
new javascript shell functions there are a few new built-in functions in the javascript shell, mostly useful for
testing.
... sleep and scatter, defined in <href="internal" a="" class="/en/spidermonkey/jsapi_reference/js_threadsafe" title="en/spidermonkey/jsapi reference/js threadsafe">js_threadsafe builds only, are for
testing thread-safety.</href="internal"> ...
AT APIs Support
on windows platform mfcembed
testing client - this is a very simple package, great for
testing basic html accessibility with your products and the gecko rendering engine (please contact us for a copy).
...(i recommend sdk 1.3 because the msaa sdk 2.0 doesn't come with the source code to the
testing tools.
XForms Accessibility
currently we have verified that xforms accessibility is working on the windows platform, and linux
testing has not yet been done, although everything should work and is ready to be tested.
...the first is to use and assistive technology such as a screen reader, or an accessibility
testing tool, to make sure xforms elements have proper accessible objects.
Setting up the Gecko SDK
installing component this if for manually installing the component for
testing.
... i used a different firefox profile for
testing purposes called extensions.
Troubleshooting XPCOM components registration
if you are
testing with a release from mozilla.org, use the gecko sdk (and not your own compile of trunk firefox, etc.).
... if you are
testing a build from your linux distribution (or other vendor-supplied build), look for -dev packages from them.
FileError - Web APIs
when you're just
testing your app, and you don't want to set up a web server, you can bypass the security restriction on chrome.
...use the flag only for
testing purposes.
Using the Media Capabilities API - Web APIs
in our example, we are
testing the decoding capabilities of a video configuration.
...g the decodability of an audio file, we would create an audio configuration including the number of channels and sample rate, leaving out the properties that apply only to video—namely, the dimensions and the frame rate: const audioconfiguration = { type: "file", audio: { contenttype: "audio/ogg", channels: 2, bitrate: 132700, samplerate: 5200 } }; had we been
testing encoding capabilities, we would have created a mediaencodingconfiguration, which requires the type of media being tested — either record (for recording media, i.e.
PublicKeyCredentialRequestOptions.extensions - Web APIs
this text is displayed on a prompt of the authenticator before verifying the user or
testing their presence.
...this is used to display an image or some non-textual content on the authenticator before verifying the user or
testing their presence.
SVGGeometryElement - Web APIs
normal hit
testing rules apply; the value of the pointer-events property on the element determines whether a point is considered to be within the fill.
...normal hit
testing rules apply; the value of the pointer-events property on the element determines whether a point is considered to be within the stroke.
WebGLRenderingContext - Web APIs
webglrenderingcontext.stencilfunc() sets the both front and back function and reference value for stencil
testing.
... webglrenderingcontext.stencilfuncseparate() sets the front and/or back function and reference value for stencil
testing.
@media - CSS: Cascading Style Sheets
<mf-value>where <mf-name> = <ident><mf-value> = <number> | <dimension> | <ident> | <ratio> examples
testing for print and screen media types @media print { body { font-size: 10pt; } } @media screen { body { font-size: 13px; } } @media screen, print { body { line-height: 1.2; } } @media only screen and (min-width: 320px) and (max-width: 480px) and (resolution: 150dpi) { body { line-height: 1.4; } } introduced in media queries level 4 is a new range syntax that allows for less verbo...
...se media queries when
testing for any feature accepting a range, as shown in the below examples: @media (height > 600px) { body { line-height: 1.4; } } @media (400px <= width <= 700px) { body { line-height: 1.4; } } for more examples, please see using media queries.
@supports - CSS: Cascading Style Sheets
'='<attr-modifier> = i | s examples
testing for the support of a given css property @supports (animation-name: test) { … /* css applied when animations are supported without a prefix */ @keyframes { /* other at-rules can be nested inside */ … } }
testing for the support of a given css property or a prefixed version @supports ((perspective: 10px) or (-moz-perspective: 10px) or (-webkit-perspective: 10px) or (-ms-p...
...erspective: 10px) or (-o-perspective: 10px)) { … /* css applied when 3d transforms, prefixed or not, are supported */ }
testing for the non-support of a specific css property @supports not ((text-align-last: justify) or (-moz-text-align-last: justify)) { … /* css to provide fallback alternative for text-align-last: justify */ }
testing for the support of custom properties @supports (--foo: green) { body { color: var(--varname); } }
testing for the support of a selector (eg.
Using media queries - CSS: Cascading Style Sheets
}
testing for multiple queries you can use a comma-separated list to apply styles when the user's device matches any one of various media types, features, or states.
...}
testing for multiple features with or you can use or to test for a match among more than one feature, resolving to true if any of the features are true.
Media queries - CSS: Cascading Style Sheets
you can learn more about programmatically using media queries in
testing media queries.
...
testing media queries programmatically describes how to use media queries in your javascript code to determine the state of a device, and to set up listeners that notify your code when the results of media queries change (such as when the user rotates the screen or resizes the browser).
EXSLT
there are a number of modules; those that are supported by firefox are listed below: common (exsl)the exslt common package provides basic functions that expand upon the capabilities of xslt.math (math)the exslt math package provides functions for working with numeric values and comparing nodes.regular expressions (regexp)the exslt regular expressions package provides functions that allow
testing, matching, and replacing text using javascript style regular expressions.sets (set)the exslt sets package offers functions that let you perform set manipulation.strings (str)the exslt strings package provides functions that allow the manipulation of strings.
... functions math:highest() math:lowest() math:max() math:min() regular expressions the exslt regular expressions package provides functions that allow
testing, matching, and replacing text using javascript style regular expressions.
Using the application cache - HTML: Hypertext Markup Language
testing for updates to the cache manifest you can programmatically test to see if an application has an updated cache manifest file, using javascript.
... function onupdateready() { console.log('found new version!'); } window.applicationcache.addeventlistener('updateready', onupdateready); if(window.applicationcache.status === window.applicationcache.updateready) { onupdateready(); } to manually start
testing for a new manifest file, you can use window.applicationcache.update().
Browser detection using the user agent - HTTP
problems like these can be avoided by
testing for support of the feature itself instead: var islookbehindsupported = false; try { new regexp("(?<=)"); islookbehindsupported = true; } catch (err) { // if the agent doesn't support lookbehinds, the attempted // creation of a regexp object using that syntax throws and // islookbehindsupported remains false.
...don't unintentionally use the api you are
testing for in unsupported browsers.
Array.prototype.some() - JavaScript
if (this == null) { throw new typeerror('array.prototype.some called on null or undefined'); } if (typeof fun !== 'function') { throw new typeerror(); } var t = object(this); var len = t.length >>> 0; for (var i = 0; i < len; i++) { if (i in t && fun.call(thisarg, t[i], i, t)) { return true; } } return false; }; } examples
testing value of array elements the following example tests whether any element in the array is bigger than 10.
... function isbiggerthan10(element, index, array) { return element > 10; } [2, 5, 8, 1, 4].some(isbiggerthan10); // false [12, 5, 8, 1, 4].some(isbiggerthan10); // true
testing array elements using arrow functions arrow functions provide a shorter syntax for the same test.
TypedArray.prototype.every() - JavaScript
examples
testing size of all typed array elements the following example tests whether all elements in the typed array are bigger than 10.
... function isbigenough(element, index, array) { return element >= 10; } new uint8array([12, 5, 8, 130, 44]).every(isbigenough); // false new uint8array([12, 54, 18, 130, 44]).every(isbigenough); // true
testing typed array elements using arrow functions arrow functions provide a shorter syntax for the same test.
TypedArray.prototype.some() - JavaScript
examples
testing size of all typed array elements the following example tests whether any element in the typed array is bigger than 10.
... function isbiggerthan10(element, index, array) { return element > 10; } new uint8array([2, 5, 8, 1, 4]).some(isbiggerthan10); // false new uint8array([12, 5, 8, 1, 4]).some(isbiggerthan10); // true
testing typed array elements using arrow functions arrow functions provide a shorter syntax for the same test.
Optional chaining (?.) - JavaScript
this prevents the error that would occur if you simply accessed obj.first.second directly without
testing obj.first.
...do something with the data } catch (err) { if (onerror) { //
testing if onerror really exists onerror(err.message); } } } // using optional chaining with function calls function dosomething(oncontent, onerror) { try { // ...
Transitioning to strict mode - JavaScript
if your code base contains such cases,
testing will be necessary to be sure nothing is broken.
...thorough
testing will need to be performed to make sure nothing breaks.
Performance Monitoring: RUM vs synthetic monitoring - Web Performance
rum is generally best suited for understanding long-term trends whereas synthetic monitoring is very well suited to regression
testing and mitigating shorter-term performance issues during development.
... synthetic monitoring can be an important component of regression
testing and production site monitoring.
Mobile first - Progressive web apps (PWAs)
volo has a number of useful commands available, of which we will just use a couple: volo server: starts a local web server at localhost:8080 and runs your app through it: great for easy
testing.
...for example, the modernizr in our example app is
testing for multiple background image and rgba support.
SDK and XUL Comparison - Archive of obsolete content
advantages of the sdk simplicity the sdk provides high-level javascript apis to simplify many common tasks in add-on development, and tool support which greatly simplifies the process of developing,
testing, and packaging an add-on.
Getting started (cfx) - Archive of obsolete content
navigate to it, type cfx init, and hit enter: mkdir my-addon cd my-addon cfx init you'll see some output like this: * lib directory created * data directory created * test directory created * doc directory created * readme.md written * package.json written * test/test-main.js written * lib/main.js written * doc/main.md written your sample add-on is now ready for
testing: try "cfx test" and then "cfx run".
Signing an XPI - Archive of obsolete content
don't forget to delete the certificate from mozilla firefox once you've finished
testing firefox 1.5: from the tools menu choose options->advanced->security->view certificates->authorities firefox 1.0: from the tools menu choose options->advanced->certificates->manage certificates->authorities press the import button.
CSS3 - Archive of obsolete content
css counter styles level 3 candidate recommendation
testing modules css images module level 3 candidate recommendation defines the <image> data type.
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
on,dc=int-evry,dc=fr dn: sn=http_server,ou=browser,ou=information,dc=int-evry, dc=fr cn: web1.int-evry.fr cn: web2.int-evry.fr dn: sn=http_unix_file, ou=browser,ou=information,dc=int-evry, dc=fr cn: /browser/config_file_unix.jsc dn: sn=http_win_file, ou=browser,ou=information,dc=int-evry, dc=fr cn: /browser/config_file_win.jsc netscape.cfg here we select an operational ldap server simply by
testing a ldap query, to make sure that our ldap queries for setting preferences will be answered.
Misc top level - Archive of obsolete content
back in the early days, this approach worked, because browsers would usually make a table cell exactly as wide and tall as an image it contained.no proxy for configurationthis document provides a comprehensive discussion of the manual proxy feature "no proxy for:", including configuration issues,
testing and bugs.same-origin policy for file: urisin gecko 1.8 or earlier, any two file: uris are considered to be same-origin.
Building TransforMiiX standalone - Archive of obsolete content
it is recommended to add ac_add_options --disable-gtktest ac_add_options --without-jpeg ac_add_options --without-zlib ac_add_options --without-png ac_add_options --without-x to your .mozconfig, too, as it stops configure from
testing unneeded libs.
Java in Firefox Extensions - Archive of obsolete content
i've had problems with stability in the latest xquseme when
testing in firefox 3.5b4, especially apparently on linux (i haven't so far been able to find any workarounds/incompatibilities, but everything is working in firefox 3.0.10.).
Plug-n-Hack Phase1 - Archive of obsolete content
for
testing); plug-n-hack requires tool and service manifests to be served from the same origin as the api endpoints but, for
testing purposes, ringleader (the firefox addon implementation of the browser component) allows you to set a preference to relax or disable origin checks.
Porting NSPR to Unix Platforms - Archive of obsolete content
prpub/pr/src/md/unix/objs.mk</tt> <tt>mozilla/nsprpub/pr/src/md/unix/unix.c</tt>: just fix the compiling errors, usually pointed out by the <tt>#error</tt> preprocessor directives we inserted for a pthreads port, you need to modify the following files: <tt>mozilla/nsprpub/pr/include/md/_pth.h</tt> files in mozilla/nsprpub/pr/src/pthreads, most likely <tt>ptthread.c</tt> and <tt>ptio.c</tt>
testing your port we have some unit tests in <tt>mozilla/nsprpub/pr/tests</tt>.
Priority Content - Archive of obsolete content
started: using mozilla in
testing and debugging web sites original: using mozilla in
testing and debugging web sites wiki location: using mozilla in
testing and debugging web sites migrators: serge k.
Standalone XPCOM - Archive of obsolete content
building standalone xpcom here are the instructions for building the standalone xpcom on unix or windows: step 1 : pull the sources cvs -z 3 co mozilla/client.mk cd mozilla gmake -f client.mk pull_all build_modules=xpcom step 2 : build xpcom standalone ./configure --enable-standalone-modules=xpcom --enable-application=standalone gmake
testing standalone xpcom xpcom/sample contains a sample application and a component.
Tamarin Build System Documentation - Archive of obsolete content
to provide quick and accurate results of building and
testing tamarin on supported platforms and configurations to represent the build results in a clear and concise manor please give use feedback if you have any comments or suggestions to improve the build system how to add tests to the smokes?
Mozilla Web Developer Community - Archive of obsolete content
newsgroups, mailing lists, and forums by topic: css - mozilla.dev.tech.css dom - mozilla.dev.tech.dom html - mozilla.dev.tech.html plugins - mozilla.dev.tech.plugins xml - mozilla.dev.tech.xml documentation - see mdc:community more at http://www.mozilla.org/community/dev...er-forums.html mozillazine forums mozilla news and development help mozilla (
testing and development) mozdev.org mozillazine planet mozilla spread firefox standards communities get involved in grass-roots web standards evangelism efforts through these groups: the web standards project, a grassroots coalition fighting for standards maccaws, making a commercial case for web standards a list apart, for people who make websites mozilla technology evangelism, get involved wi...
Index - Archive of obsolete content
it is designed to test (insofar as automated
testing is possible) the guidelines and requirement for creating accessible xul as set forth in the xul accessibility guidelines, and to report on any problems found in tested documents.
Manifest Files - Archive of obsolete content
if you just want to try
testing privileged xul code in the firefox browser, you can do this easily by just using a manifest with only one line in it: create a new directory somewhere.
XUL accessibility tool - Archive of obsolete content
it is designed to test (insofar as automated
testing is possible) the guidelines and requirement for creating accessible xul as set forth in the xul accessibility guidelines, and to report on any problems found in tested documents.
XUL Explorer - Archive of obsolete content
support attribute value checking where appropriate (boolean and enumerated values) - xul checker support “best practice” checks such as: using of commands and keys, strings in dtds and so on - xul checker multi-tabbed editor support support wizards to generate common projects - extensions support extension
testing using firefox extension test mode venkman support dom inspector support future: support more “best practice” checks such as: more a11y checks, strings in dtds and so on - xul checker allow users to add snippets on the fly add sidebars for more functionality - property sidebar and project sidebar support wizards to generate common projects - xul files, js xpcom, and xulrunner applica...
2006-10-06 - Archive of obsolete content
summary: mozilla.dev.apps.firefox - september 30 - october 6, 2006 announcements vista compatibility lab mike schroepfer announced the current work being done
testing mozilla products with vista.
2006-10-06 - Archive of obsolete content
summary: mozilla.dev.apps.thunderbird - september 30-october 06, 2006 announcements mac user needed scott macgregor announced that .mac support and a dynamically add isp account feature has been added to the thunderbird account manager, however,
testing is required before release can be issued.
2006-09-22 - Archive of obsolete content
summary: mozilla.dev.i18n - feb 2nd - sep 22nd, 2006 announcements
testing a dummy greek bon echo nsis installer bug #69230: accelerators should not be affected by keyboard group/level proposal of code changes for l10n in firefox 3 discussions thai language support: how can we add thai as an official localized build?
2006-12-01 - Archive of obsolete content
summary: mozilla.dev.l10n - december 1, 2006 announcements langpacks for sunbird nightly builds available for
testing langpacks for sunbird nightly builds available for
testing seamonkey 1.1 late string changes for mail content policy the fix to bug 360288 has landed.
2006-10-13 - Archive of obsolete content
10; the target release date for rc3 is october 17 new tinderbox and bonsai servers the build team would like help
testing out the new tinderbox and bonsai servers.
2006-12-01 - Archive of obsolete content
windows dde shell integration removal robert strong announces that a long standing bug in firefox's use of the windows dde shell integration code has been uncovered during vist os integration
testing.
2006-11-10 - Archive of obsolete content
benjamin smedberg crossposted a notice about unit
testing for the mozilla toolkit, letting developers know about the importance of
testing for the improvement of mozilla 2, and asks for complete coverage.
2006-12-01 - Archive of obsolete content
summary: mozilla.dev.quality - november 25-december 1, 2006 announcements need volunteers to maintain jssh for
testing on firefox 2 branch - dave liebreich is looking for someone willing to take responsibility for maintaining jssh for
testing purposes.
2006-10-20 - Archive of obsolete content
summary: mozilla.dev.apps.calendar - october 13 - october 20, 2006 announcements inter-operability test day on tuesday october 17 interoperability
testing on tuesday, for calendar applications test on how sunbird works with published calendars that were generated.
Making sure your theme works with RTL locales - Archive of obsolete content
nsure rtl compatibility: -moz-padding-start -moz-padding-end -moz-margin-start -moz-margin-end -moz-border-start -moz-border-start-color -moz-border-start-style -moz-border-start-width -moz-border-end -moz-border-end-color -moz-border-end-style -moz-border-end-width #urlbar-search-splitter { min-width: 8px; -moz-margin-start: -4px; border: none; background: transparent; }
testing your theme
testing your theme for rtl compatibility is easy, and you do not even have to go through the hassle of downloading a rtl locale.
XInclude - MDN Web Docs Glossary: Definitions of Web-related terms
tlanguage = xinclude.getattribute('accept-language'); // "accept-language: "+x var xifallback = xinclude.getelementsbytagnamens('http://www.w3.org/2001/xinclude', 'fallback')[0]; // only one such child is allowed if (href === '' || href === null) { // points to same document if empty (null is equivalent to empty string) href = null; // set for uniformity in
testing below if (parse === 'xml' && xpointer === null) { alert('there must be an xpointer attribute present if "href" is empty an parse is "xml"'); return false; } } else if (href.match(/#$/, '') || href.match(/^#/, '')) { alert('fragment identifiers are disallowed in an xinclude "href" attrib...
MDN Web Docs Glossary: Definitions of Web-related terms
first input delay first interactive first meaningful paint first paint first-class function flex flex container flex item flexbox forbidden header name forbidden response header name fork fragmentainer frame rate (fps) ftp ftu function fuzz
testing g gaia garbage collection gecko general header gif gij git global object global scope global variable glyph gonk google chrome gpl gpu graceful degradation grid grid areas grid axis grid cell gr...
Accessibility - Learn web development
to help you achieve this, this module will cover general best practices (which are demonstrated throughout the html, css, and javascript topics), cross browser
testing, and some tips on enforcing accessibility from the start.
How CSS is structured - Learn web development
font-size: 1.5em;} /* handle specific elements nested in the dom */ /* -------------------------------------------------------------------------------------------- */ div p, #id:first-line { background-color: red; border-radius: 3px; } div p { margin: 0; padding: 1em; } div p + p { padding-top: 0; } "commenting out" code is also useful for temporarily disabling sections of code for
testing.
CSS FAQ - Learn web development
for example: -ms-transform: rotate(90deg); -webkit-transform: rotate(90deg); transform: rotate(90deg); note: for more information on dealing with prefixed properties, see handling common html and css problems — handling css prefixes from our cross-browser
testing module.
Styling links - Learn web development
you've reached the end of this article, and already did some skill
testing in our active learning sections, but can you remember the most important information going forward?
Front-end web developer - Learn web development
modules cross-browser
testing (25–30 hour read/exercises) accessibility (20–25 hour read/exercises) modern tooling time to complete: 55–90 hours prerequisites it is a good idea to know html, css, and javascript before working through this section, as the tools discussed work alongside many of these technologies.
Debugging HTML - Learn web development
this also marks the end of the introduction to html module learning articles — now you can go on to
testing yourself with our assessments: the first one is linked below.
Looping code - Learn web development
inside the loop, we find the square root of each number using math.sqrt(i), then check whether the square root is an integer by
testing whether it is the same as itself when it has been rounded down to the nearest integer (this is what math.floor() does to the number it is passed).
Object building practice - Learn web development
last of all, we use the fill() method, which basically states "finish drawing the path we started with beginpath(), and fill the area it takes up with the color we specified earlier in fillstyle." you can start
testing your object out already.
Web performance - Learn web development
it would also be helpful to go a bit deeper into these topics, with modules such as: introduction to html css first steps javascript first steps once you've worked through this module, you'll probably be excited to go deeper into web performance — you can find a lot of further teachings in our main mdn web performance section, including overviews of performance apis,
testing and analysis tools, and performance bottleneck gotchas.
Learning area release notes - Learn web development
you can see these on: css layout: flexbox css layout: grids css layout: floats december 2019 we are adding a new type of assessment article to the learning area — "test your skills" — which will offer several short questions aimed at rapidly
testing whether you understood what is going on.
Starting our Svelte Todo list app - Learn web development
to get rid of this, remove the name prop from src/main.js; it should now look like so: import app from './app.svelte' const app = new app({ target: document.body }) export default app now if you check your
testing server url you'll see our todos.svelte component being rendered: adding static markup for the moment we will start with a static markup representation of our app, so you can see what it will look like.
Working with Svelte stores - Learn web development
in our case, just adding a role="alert" to the <div> container will do the trick, like this: <div role="alert" on:click={() => visible = false}> in general,
testing your applications using screen readers is a good idea, not only to discover accessibility issues but also to get used to how visually impaired people use the web.
Command line crash course - Learn web development
simple commands do not carry too much danger, but as you start putting together more complex commands, you need to think carefully about what the command will do, and try
testing them out first before you finally run them in the intended directory.
Learn web development
tools and
testing this topic covers the tools developers use to facilitate their work, such as cross-browser
testing tools, linters, formatters, transformation tools, version control systems, deployment tools, and client-side javascript frameworks.
Accessibility Features in Firefox
at my next opportunity, i intend to convert my family over to it too." darren paskell, from window-eyes beta
testing list firefox works with popular screen readers, with the best support currently coming from gw micro's window-eyes 5.5.
CSUN Firefox Materials
" -- darren paskell, from window-eyes beta
testing list firefox works with popular screen readers, with the best support currently coming from gw micro's window-eyes 5.5.
Add-ons
you’ll find: overview of the firefox extension features tools and processes for developing and
testing how to publish your extension on addons.mozilla.org or distribute it yourself how to manage your published extension an enterprise guide for developing and using extensions how to develop themes for firefox firefox developer communities extensions for firefox for android in 2020, mozilla will release a new firefox for android experience.
Benchmarking
flash plugin if you are profiling real websites, you should disable the adobe flash plugin so you are
testing firefox code and not flash jank problems.
What to do and what not to do in Bugzilla
blocker blocks development and/or
testing work critical crashes, loss of data, severe memory leak major major loss of function normal regular issue, some loss of functionality under specific circumstances minor minor loss of function, or other problem where easy workaround is present trivial cosmetic problem like misspelled words or misaligned text enhancement reques...
Building SpiderMonkey with UBSan
(for automated
testing outside of gdb, you can instead build with -fsanitize=undefined-trap -fsanitize-undefined-trap-on-error, but then you lose ubsan's diagnostics and the ability to continue past errors.) known bugs.
Experimental features in Firefox
due to a bug that came up during
testing of the user interface, we have decided to postpone shipping this api while discussions over potential changes to the api are held.
Using JavaScript code modules
for example: components.utils.import("resource://app/my_module.jsm"); alert(foo()); // displays "foo" alert(bar.size + 3); // displays "6" alert(dummy); // displays "dummy is not defined" because 'dummy' was not exported from the module note: when you're
testing changes to a code module, be sure to change the application's build id (e.g., the version) before your next test run; otherwise, you may find yourself running the previous version of your module's code.
JavaScript code modules
assert.jsm implements the commonjs unit
testing specification version 1.1, which provides a basic standardized interface for performing in-code logical assertions with optional, customizable error reporting.
Localization and Plurals
pluralrule=10 seconds=sekunda;sekundźe;sekundy;sekundow minutes=mjeÅ„šina;mjeÅ„šinje;mjeÅ„šiny;mjeÅ„šin hours=hodźina;hodźinje;hodźiny;hodźin days=dźeÅ„;dnjej;dny;dnjow
testing extension to help make sure you pick the right plural rule and provide enough plural forms for strings, you should use the pluralform checker extension.
Initial setup
python python is a programming language in which many of our l10n
testing scripts are written.
BloatView
those configurations are located in
testing/mozharness/configs/.
Profile Manager
reporting bugs profile manager bugs should be reported in bugzilla, under
testing -> profilemanager.
Firefox Sync
there are some notes on how to run our tps
testing infrastructure.
NSPR Poll Method
if new_flags contains pr_poll_read, you should try pr_recv or pr_send when the underlying network transport is readable if new_flags contains pr_poll_write, you should try pr_recv or pr_send when the underlying network transport is writable important do not use out_flags in any way other than
testing if (new_flags & out_flags) is 0.
NSPR LOG MODULES
set nspr_log_modules=timestamp,mozstorage:5 set nspr_log_file=/tmp/foo.log logging with try server for mochitest, edit variable nspr_log_modules in
testing/mochitest/runtests.py before pushing to try.
Building NSS
unit
testing nss contains extensive unit tests.
FIPS Mode - an explanation
mozilla's nss cryptographic software has been tested by government-approved independent
testing labs and certified by nist as being fips 140 compliant when operated in fips mode on 4 previous occasions.
NSS_3.12_release_notes.html
cert_rev_m_do_not_test_using_this_method cert_rev_m_test_using_this_method cert_rev_m_allow_network_fetching cert_rev_m_forbid_network_fetching cert_rev_m_allow_implicit_default_source cert_rev_m_ignore_implicit_default_source cert_rev_m_skip_test_on_missing_source cert_rev_m_require_info_on_missing_source cert_rev_m_ignore_missing_fresh_info cert_rev_m_fail_on_missing_fresh_info cert_rev_m_stop_
testing_on_fresh_info cert_rev_m_continue_
testing_on_fresh_info cert_rev_mi_test_each_method_separately cert_rev_mi_test_all_local_information_first cert_rev_mi_no_overall_info_requirement cert_rev_mi_require_some_fresh_info_available cert_policy_flag_no_mapping cert_policy_flag_explicit cert_policy_flag_no_any cert_enable_ldap_fetch cert_enable_http_fetch new macro in utilrename.h: smime_aes_cbc_128...
NSS 3.14 release notes
because the test coverage and interoperability
testing is not yet at the same level as other nss code, this feature should be considered "experimental" and may contain bugs.
NSS 3.15 release notes
in ocsp.h cert_postocsprequest - primarily intended for
testing, permits the sending and receiving of raw ocsp request/responses.
NSS 3.44.1 release notes
s 3.44.1 1554336 - optimize away unneeded loop in mpi.c 1515342 - more thorough input checking (cve-2019-11729) 1540541 - don't unnecessarily strip leading 0's from key material during pkcs11 import (cve-2019-11719) 1515236 - add a sslkeylogfile enable/disable flag at build.sh 1473806 - fix seckey_converttopublickey handling of non-rsa keys 1546477 - updates to
testing for fips validation 1552208 - prohibit use of rsassa-pkcs1-v1_5 algorithms in tls 1.3 (cve-2019-11727) 1551041 - unbreak build on gcc < 4.3 big-endian compatibility nss 3.44.1 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS Third-Party Code
this is a list of third-party code included in the nss repository, broken into two lists: code that can be compiled into the nss libraries, and code that is only used for
testing.
Overview of NSS
fips 140 validation and niscc
testing the nss software crypto module has been validated three times for conformance to fips 140 at security levels 1 and 2.
PKCS11
pkcs #11 information for implementors of cryptographic modules: implementing pkcs11 for nss pkcs11 faq using the jar installation manager to install a pkcs #11 cryptographic module pkcs #11 conformance
testing ...
Python binding for NSS
test code in addition the test directory contains unit tests that also illustrate python-nss usage, however unlike the examples the unit tests are geared towards
testing rather than expository illustration.
NSS tools : modutil
use this option only after manually
testing each planned operation to check for warnings and to ensure that bypassing the prompts will cause no security lapses or loss of database integrity.
troubleshoot.html
if the build fails early on the gmakein coreconf try updating your cvs tree with -p: cd mozilla cvs update -p building a 32-bit version on a 64-bit may fail with: /usr/include/features.h:324:26: fatal error: bits/predefs.h: no such file or directory in this case remember to set use_64=1
testing nss the ssl stress test opens 2,048 tcp connections in quick succession.
NSS Tools modutil
use this option only after manually
testing each planned operation to check for warnings and to ensure that bypassing the prompts will cause no security lapses or loss of database integrity.
NSS tools : modutil
use this option only after manually
testing each planned operation to check for warnings and to ensure that bypassing the prompts will cause no security lapses or loss of database integrity.
How to embed the JavaScript engine
*/ if (rval.isboolean() && !rval.toboolean()) cancelevent(event); again, i've elided error checking (such as
testing for !ok after the call), and i've faked up some c event management routines that emulate the dom's convention of canceling an event if its handler returns false.
JSAPI Cookbook
to query whether a value has a particular type, use a correspondingly named member
testing function: // javascript var v = computesomevalue(); var isstring = typeof v === "string"; var isnumber = typeof v === "number"; var isnull = v === null; var isboolean = typeof v === "boolean"; var isobject = typeof v === "object" && v !== null; /* jsapi */ js::rootedvalue v(cx, computesomevalue()); bool isstring = v.isstring(); bool isnumber = v.isnumber(); bool isint32 = v.isint32(); // note...
JSID_IS_GCTHING
testing and conversion functions between a js id and a gc thing.
JSID_IS_INT
testing and conversion functions between a js id and an integer.
JSID_IS_STRING
testing and conversion functions between a js id and a js string.
JSID_IS_SYMBOL
this article covers features introduced in spidermonkey 38
testing and conversion functions between a js id and a js symbol.
JS_SetGCZeal
this article covers features introduced in spidermonkey 1.8 enable gc zeal, a
testing and debugging feature that helps find gc-related bugs in jsapi applications.
SpiderMonkey 1.8.5
javascript shell changes there are many new built-in functions in the javascript shell, mostly useful for
testing spidermonkey.
SpiderMonkey 1.8.7
javascript shell changes there are many new built-in functions in the javascript shell, mostly useful for
testing spidermonkey.
Running Parsemark
parsemark is a command-line
testing utility for measuring parse/emit performance of the spidermonkey front-end.
SavedFrame
from js use savestack, accessible via components.utils.getjs
testingfunction().
TPS Formdata Lists
for example: var formdata1 = [ { fieldname: "
testing", value: "success", date: -1 }, { fieldname: "
testing", value: "failure", date: -2 }, { fieldname: "username", value: "joe" } ]; formdata lists and phase actions you can use the following functions in phase actions for formdata lists: formdata.add formdata.delete formdata.verify formdata.verifynot for an example, see the tps formdata unittest: http://hg.mozilla.org/services/tps/f...st_formdata.js notes note 1, tps supports ...
TPS Tab Lists
there are a handful of static pages at http://hg.mozilla.org/services/tps/file/tip/pages which can be used for tab
testing, and data: url's can be used as well.
Web Replay
this feature has had little
testing or polishing and there is not yet a good definition of 'reasonably similar'.
Zest usecase: Reporting Security Vulnerabilities to Developers
y tools they use those tools to create a zest script which reproduces the problem they hand the script over to the developer the developer adjusts the script to match their local environment they run the script and see the vulnerability they fix the vulnerability they rerun the script to check that the vulnerability is fixed the fix is applied to the system that the security team is
testing the security team rerun the script as an initial check they then perform any manual
testing they think is necessary note that the developers could also include the script in the regression tests to make sure that it doesnt reoccur.
Mozilla Projects
it's name stands for
testing and profiling tool for sync (which is a misnomer, since it doesn't do any profiling), and it should not be confused with the similarly named tests in talos.
Using RAII classes in Mozilla
static analysis static analysis passes are run on our
testing infrastructure using our clang plugin, you can also run them locally marking a raii class for the static analysis is very simple, and performing this marking causes the static analysis to produce a build-time error whenever a raii class is allocated as a temporary, on the heap, or in static storage.
Exploitable crashes
finding exploitable crashes exploitable crashes are most often discovered through normal
testing and usage, when developers recognize a crash stack in gdb or submitted to a bug as exploitable.
Browser security
these articles provide important guides and references to ensuring the code you write is secure, including both design recommendations and
testing guidelines.
extIExtension
you may need to reset this preference in about:config during
testing.
Creating a Python XPCOM component
testing it to see this work, you will have to start firefox from the command line, since that'll be where the stuff will be printed out.
Creating the Component Code
we suggest that when you are
testing your component in the mozilla or netscape client, you copy your component into the components directory in the client's installation folder.
Mozilla internal string guide
use this instead of
testing string.length == 0 .equals(string) - true if the given string has the same value as the current string.
Components.lastResult
introduction generally, components.lastresult is only useful for
testing the result of xpcom methods that can return interesting 'success' codes.
Components.utils
getjs
testingfunctions() getobjectprincipal() gets the nsiprincipal for the given javascript object.
Components.utils.schedulePreciseGC
this is useful particularly when
testing for memory leaks, because normal garbage collection is conservative when javascript code is running to ensure that in-use memory isn't inadvertently collected.
Language bindings
this is useful particularly when
testing for memory leaks, because normal garbage collection is conservative when javascript code is running to ensure that in-use memory isn't inadvertently collected.components.utils.setgczealthis method lets scripts set the zeal level for garbage collection.
nsIAppStartup
this can be used, for example, when doing performance
testing of the startup process to discount numbers for tests that were interrupted by a user prompt.
nsIHTMLEditor
an example of use is for
testing if a node is in a table cell given a selection anchor node.
nsINavHistoryQuery
testing for not annotation will do the same thing as a normal query and remove everything that doesn't have that annotation.
nsIXULRuntime
process_type_ipdlunittest 3 ipdl unit
testing subprocess.
Storage
it can be handy for examining existing databases and
testing sql statements.
Xptcall Porting Status
(24-aug-1999) brandon writes: i've finished
testing xptcall sparc linux on 12 different sparc machines and it checks out good.
xpidl
for
testing purposes, or one-off interface compilation, xpidl can be run from the command line: usage: ./xpidl -m mode [-w] [-v] [-t version number] [-d filename.pp] [-i path] [-o basename | -e filename.ext] filename.idl -a emit annotations to typelib -w turn on warnings (recommended) -v verbose mode (nyi) -t create a typelib of a specific version number -i add e...
Test-Info
bugs should be filed in
testing :: general.
The Valgrind Test Job
alternatively, bugs relating to the test job can be filed in the "
testing" product, under the "general" component.
Cached compose window FAQ
the downsides are that we have had some bugs, it complicates and bloats the code, and it requires more
testing.
Zombie compartments
the more you exercise the add-on, the more thorough the
testing will be, but in practice a lot of problems show up quickly.
Set a logpoint - Firefox Developer Tools
the logpoint is especially useful in cases where breaking the execution breaks
testing procedures, such as when you are debugging popup windows, or executing focus-related logic.
CacheStorage - Web APIs
those that aren't using https, although this definition will likely become more complex in the future.) when
testing, you can get around this by checking the "enable service workers over http (when toolbox is open)" option in the firefox devtools options/gear menu.
Advanced animations - Web APIs
x.clearrect(0,0, canvas.width, canvas.height); ball.draw(); ball.x += ball.vx; ball.y += ball.vy; raf = window.requestanimationframe(draw); } canvas.addeventlistener('mouseover', function(e) { raf = window.requestanimationframe(draw); }); canvas.addeventlistener('mouseout', function(e) { window.cancelanimationframe(raf); }); ball.draw(); boundaries without any boundary collision
testing our ball runs out of the canvas quickly.
Document.requestStorageAccess() - Web APIs
to make
testing easier, we have added two preferences in about:config that control prompting upon requeststorageaccess() calls: dom.storage_access.auto_grants can be set to false to disable the automatic granting of ephemeral storage access grants.
Element: click event - Web APIs
safari mobile considers the following elements to be typically interactive (and thus they aren't affected by this bug): <a> (but it must have an href) <area> (but it must have an href) <button> <img> <input> <label> (but it must be associated with a form control) <textarea> this list is incomplete; you can help mdn by doing further
testing/research and expanding it.
FormData.has() - Web APIs
example the following line creates an empty formdata object: var formdata = new formdata(); the following snippet shows the results of
testing for the existence of username in the formdata object, before and after appending a username value to it with formdata.append: formdata.has('username'); // returns false formdata.append('username', 'chris'); formdata.has('username'); // returns true specifications specification status comment xmlhttprequestthe definition of 'has()' in that specification.
IntersectionObserver - Web APIs
properties intersectionobserver.root read only the element or document whose bounds are used as the bounding box when
testing for intersection.
Navigator.share() - Web APIs
then include an array of files in the call to navigator.share(): notice: that the sample handles feature detection by
testing for navigator.canshare() rather than for navigator.share().
Navigator.onLine - Web APIs
until firefox 41, all other conditions return a true value;
testing actual behavior on nightly 68 on windows shows that it only looks for lan connection like chrome and safari giving false positives.
Using Service Workers - Web APIs
when
testing you can get around the https restriction by checking the "enable service workers over http (when toolbox is open)" option in the firefox developer tools settings.
Adding 2D content to a WebGL context - Web APIs
function drawscene(gl, programinfo, buffers) { gl.clearcolor(0.0, 0.0, 0.0, 1.0); // clear to black, fully opaque gl.cleardepth(1.0); // clear everything gl.enable(gl.depth_test); // enable depth
testing gl.depthfunc(gl.lequal); // near things obscure far things // clear the canvas before we start drawing on it.
Window.getComputedStyle() - Web APIs
it's likely the defaultview pattern was a combination of folks not wanting to write a
testing spec for window and making an api that was also usable in java.
Window.matchMedia() - Web APIs
css .mq-value { font: 18px arial, sans-serif; font-weight: bold; color: #88f; padding: 0.4em; border: 1px solid #dde; } result see
testing media queries programmatically for additional code examples.
HTML in XMLHttpRequest - Web APIs
second, you have to actually fetch a test document over http, because
testing with a data: url would end up
testing data: url support at the same time.
XRPermissionDescriptor.mode - Web APIs
important: the immersive-ar mode is defined by the webxr augmented reality module, which is not yet stable and should not be used other than for
testing and experimentation.
XRSessionMode - Web APIs
important: the immersive-ar mode is defined by the webxr augmented reality module, which is not yet stable and should not be used other than for
testing and experimentation.
XRSystem: requestSession() - Web APIs
important: the immersive-ar mode is defined by the webxr augmented reality module, which is not yet stable and should not be used other than for
testing and experimentation.
Alerts - Accessibility
we need to change the two inputs for e-mail and name for this: <input name="name" id="name" aria-required="true" onblur="checkvalidity('name', ' ', 'invalid name entered!');"/> <br /> <input name="email" id="email" aria-required="true" onblur="checkvalidity('email', '@', 'invalid e-mail address');"/>
testing the example if you use firefox 3 and a currently-supported screen reader, try the following: enter only your first name as the name.
ARIA - Accessibility
much as how browser emulators and simulators are not an effective solution for
testing full support, proxy assistive technology solutions aren't sufficient to fully guarantee functionality.
any-hover - CSS: Cascading Style Sheets
examples
testing whether input methods can hover html <a href="#">try hovering over me!</a> css @media (any-hover: hover) { a:hover { background: yellow; } } result specifications specification status comment media queries level 4the definition of 'any-hover' in that specification.
Detecting CSS animation support - CSS: Cascading Style Sheets
testing for css animation support this code will check to see if css animation support is available: var animation = false, animationstring = 'animation', keyframeprefix = '', domprefixes = 'webkit moz o ms khtml'.split(' '), pfx = '', elem = document.createelement('div'); if( elem.style.animationname !== undefined ) { animation = true; } if( animation === false ) { for( var i = 0; i < domprefixes.length; i++ ) { if...
font-optical-sizing - CSS: Cascading Style Sheets
you should see a difference in supporting browsers.</p> @font-face { src: url('amstelvaralpha-vf.ttf'); font-family:'amstelvar'; font-style: normal; } p { font-size: 36px; font-family: amstelvar; } .no-optical-sizing { font-optical-sizing: none; } note: the font referenced above — which includes optical sizing and is freely-licensed — is good for
testing.
scrollbar-width - CSS: Cascading Style Sheets
and introduced in wcag 2.1, criterion 2.5.5 (target size) advises that touch targets should be at least 44px in width and height (although the problem is compounded on high-resolution screens; thorough
testing is advised).
Regular expressions (regexp) - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the exslt regular expressions package provides functions that allow
testing, matching, and replacing text using javascript style regular expressions.
Audio and Video Delivery - Developer guides
ive.) video mp4 (type="video/mp4"): http://jplayer.org/video/m4v/big_buck_bunny_trailer.m4v (play the mp4 video live.) video webm (type="video/webm"): http://jplayer.org/video/webm/big_buck_bunny_trailer.webm (play the webm video live.) video ogg (type="video/ogg"): http://jplayer.org/video/ogv/big_buck_bunny_trailer.ogv (play the ogg video live.) if these don't play then the browser you are
testing doesn't support the given format.
itemscope - HTML: Hypertext Markup Language
aterating] itemprop ratingvalue 4.0 itemprop reviewcount 35 itemscope itemprop[itemtype] nutrition [nutritioninformation] itemprop servingsize 1 medium slice itemprop calories 250 cal itemprop fatcontent 12 g note: a handy tool for extracting microdata structures from html is google's structured data
testing tool.
itemtype - HTML: Hypertext Markup Language
ntil 2020-11-05 itemprop itemcondition http://schema.org/usedcondition itemprop availability http://schema.org/instock itemscope itemprop[itemtype] seller [organization] http://schema.org/organization itemprop name executive objects note: a handy tool for extracting microdata structures from html is google's structured data
testing tool.
Microdata - HTML: Hypertext Markup Language
emscope itemprop[itemtype] aggregaterating [aggregaterating] itemprop ratingvalue 4.6 itemprop ratingcount 8864 itemscope itemprop[itemtype] offers [offer] itemprop price 1.00 itemprop pricecurrency usd result note: a handy tool for extracting microdata structures from html is google's structured data
testing tool.
Using Feature Policy - HTTP
when applying a policy to existing content,
testing is likely required to verify it continues to work as expected.
Tk - HTTP
the origin server is currently
testing its communication of tracking status.
An overview of HTTP - HTTP
http messages can be read and understood by humans, providing easier
testing for developers, and reduced complexity for newcomers.
Introduction - JavaScript
for the sake of simplicity, it can be imagined that every time something is entered into the console, it is actually surrounded by console.log around eval, like so: function greetme(yourname) { alert("hello " + yourname) } console.log(eval('3 + 5')) multi-line input in the web console the single-line input mode of the web console is great for quick
testing of javascript expressions, but although you can execute multiple lines, it's not very convenient for that.
Array.prototype.every() - JavaScript
if (!testresult) { return false; } } k++; } return true; }; } examples
testing size of all array elements the following example tests whether all elements in the array are bigger than 10.
Error - JavaScript
you can handle the error using the try...catch construct: try { throw new error('whoops!') } catch (e) { console.error(e.name + ': ' + e.message) } handling a specific error you can choose to handle only specific error types by
testing the error type with the error's constructor property or, if you're writing for modern javascript engines, instanceof keyword: try { foo.bar() } catch (e) { if (e instanceof evalerror) { console.error(e.name + ': ' + e.message) } else if (e instanceof rangeerror) { console.error(e.name + ': ' + e.message) } // ...
NaN - JavaScript
"foo"/3) examples
testing against nan nan compares unequal (via ==, !=, ===, and !==) to any other value -- including to another nan value.
Number.EPSILON - JavaScript
polyfill if (number.epsilon === undefined) { number.epsilon = math.pow(2, -52); } examples
testing equality x = 0.2; y = 0.3; z = 0.1; equal = (math.abs(x - y + z) < number.epsilon); specifications specification ecmascript (ecma-262)the definition of 'number.epsilon' in that specification.
Number.NaN - JavaScript
property attributes of number.nan writable no enumerable no configurable no examples checking whether values are numeric function sanitise(x) { if (isnan(x)) { return number.nan; } return x; }
testing against nan see
testing against nan on the nan page.
Object.create() - JavaScript
however, when attempting to actually use these objects, their differences quickly become apparent: > "oco is: " + oco // shows "oco is: [object object]" > "ocn is: " + ocn // throws error: cannot convert object to primitive value
testing just a few of the many most basic built-in functions shows the magnitude of the problem more clearly: > alert(oco) // shows [object object] > alert(ocn) // throws error: cannot convert object to primitive value > oco.tostring() // shows [object object] > ocn.tostring() // throws error: ocn.tostring is not a function > oco.valueof() // shows {} > ocn.valueof() // throws error: ocn.valueof is no...
Object.is() - JavaScript
the == operator applies various coercions to both sides (if they are not the same type) before
testing for equality (resulting in such behavior as "" == false being true), but object.is doesn't coerce either value.
WebAssembly.Global() constructor - JavaScript
const output = document.getelementbyid('output'); function asserteq(msg, got, expected) { output.innerhtml += `
testing ${msg}: `; if (got !== expected) output.innerhtml += `fail!<br>got: ${got}<br>expected: ${expected}<br>`; else output.innerhtml += `success!
WebAssembly.Global - JavaScript
const output = document.getelementbyid('output'); function asserteq(msg, got, expected) { output.innerhtml += `
testing ${msg}: `; if (got !== expected) output.innerhtml += `fail!<br>got: ${got}<br>expected: ${expected}<br>`; else output.innerhtml += `success!
Strict mode - JavaScript
browsers not supporting strict mode will run strict mode code with different behavior from browsers that do, so don't rely on strict mode without feature-
testing for support for the relevant aspects of strict mode.
Authoring MathML - MathML
for example the following function verifies the mathml support by
testing the mspace element (you may replace mspace with mpadded): function hasmathmlsupport() { var div = document.createelement("div"), box; div.innerhtml = "<math><mspace height='23px' width='77px'/></math>"; document.body.appendchild(div); box = div.firstchild.firstchild.getboundingclientrect(); document.body.removechild(div); return math.abs(box.height - 23) <= 1 && math.abs(box.width ...
Using the WebAssembly JavaScript API - WebAssembly
const output = document.getelementbyid('output'); function asserteq(msg, got, expected) { output.innerhtml += `
testing ${msg}: `; if (got !== expected) output.innerhtml += `fail!<br>got: ${got}<br>expected: ${expected}<br>`; else output.innerhtml += `success!