Sputnik (JavaScript conformance test)

{{short description|Conformity test for JavaScript implementations}}

{{Use dmy dates|date=September 2021}}

{{Infobox website

| name = Sputnik

| logo = Sputnik-test-icon.gif

| logo_size = 128px

| owner = Google Inc.

| author = Christian Plesner Hansen, Sandholm

| launched = 29 June 2009

| current_status = active (version 1234)

| commercial = No

| content_license = New BSD License

| registration = No

| url = https://v8.github.io/test262/website/default.html

}}

Sputnik was a JavaScript conformance test suite. The purpose of the test suite was to determine how well a JavaScript implementation adheres to the ECMA-262 specification, 5th edition, looking only at those features that were also present in the 3rd edition.{{cite web|last=Hansen|first=Christian Plesner|work=The Chromium Blog|title=Launching Sputnik into Orbit|url=https://blog.chromium.org/2009/06/launching-sputnik-into-orbit.html|publisher=Google|accessdate=8 September 2010|date=29 June 2009}} It contained over 5000 tests that touched all aspects of the JavaScript language.{{cite web|title=The winners are: Opera, IE, Firefox, Chrome, Safari; in that order.|url=http://kristopolous.blogspot.com/2011/11/winners-are-opera-ie-firefox-chrome.html|publisher=kristopolous|accessdate=6 December 2011|date=11 November 2011}}

The test was created in Russia for testing the conformance of the V8 JavaScript engine used in Google Chrome.

As part of phasing out Google Labs, Google has shut down Sputnik. All current Sputnik tests have been incorporated into ECMA's Test262 test suite.

Browsers that do not pass

As an example of a browser that does not pass, Konqueror 4.10.1 still only passes 91.8% of the 11573 tests.

=Desktop browsers=

{{Original research|table|date=November 2011}}

Scores represent the number of failed tests – a perfect score is 0 (100%).

class="wikitable unsortable" style="width:auto;table-layout:fixed;"

|+ Desktop browser results in Sputnik

width="175px" | Browser name

! width="200px" | Score of current release

! width="200px" | Score of preview release

Internet Explorer

| Internet Explorer 11.0.9600.17420 {{-}} {{Sputnik progress|8}}

| Internet Explorer 11.0.9879.0 {{-}} {{Sputnik progress|3}}

Google Chrome

| Google Chrome 30.0.1599.66 {{-}} {{Sputnik progress|9}}

| Google Chrome 32.0.1700.39 {{-}} {{Sputnik progress|10}}

Safari

| Safari 6.0.2 {{-}} {{Sputnik progress| 8}}

| No preview results available

Mozilla Firefox

| Firefox 33.1.1 {{-}} {{Sputnik progress|53}}

| Firefox 68.0a1 {{-}} {{Sputnik progress|240}}

Opera

| Opera 11.60 (build 1185) {{-}} {{Sputnik progress|1}}

| Opera 12.00 (build 1191) {{-}} {{Sputnik progress|1}}

=ECMAScript testsuite=

Google has handed the tests from Sputnik test suite to Ecma International for inclusion in its [https://web.archive.org/web/20110514205704/http://test262.ecmascript.org/ ECMAScript 262 test suite]. Some Sputnik tests however have been found to have issues and do not conform to ECMAScript 5th edition specification.[https://bugs.ecmascript.org/show_bug.cgi?id=18 Bug 18 -several tests assume it's okay to have a FunctionDeclaration in a Statement context]

=Mobile browsers=

class="wikitable unsortable" style="width:auto;table-layout:fixed;"

|+ Mobile browsers

width="175px" | Browser name

! width="200px" | Score of current release

! width="200px" | Score of preview release

Android

| {{Sputnik progress|128}}

| no preview version

Safari (iOS 6.0.2)

| {{Sputnik progress|30}}

| no preview version

Internet Explorer Mobile

| Internet Explorer Mobile 7 {{-}} {{Sputnik progress|477}}

| Internet Explorer Mobile 9 (SDK emulator) {{-}} {{Sputnik progress|88}}

See also

References

{{reflist}}