github.com/igggame/nebulas-go@v2.1.0+incompatible/nf/nvm/test/mozilla_js_tests/README (about)

     1  // Copyright (C) 2017 go-nebulas authors
     2  //
     3  // This file is part of the go-nebulas library.
     4  //
     5  // the go-nebulas library is free software: you can redistribute it and/or modify
     6  // it under the terms of the GNU General Public License as published by
     7  // the Free Software Foundation, either version 3 of the License, or
     8  // (at your option) any later version.
     9  //
    10  // the go-nebulas library is distributed in the hope that it will be useful,
    11  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    12  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13  // GNU General Public License for more details.
    14  //
    15  // You should have received a copy of the GNU General Public License
    16  // along with the go-nebulas library.  If not, see <http://www.gnu.org/licenses/>.
    17  //
    18  
    19  This directory contains Mozilla JavaScript test suites, you can follow this instructions to download and test them:
    20  
    21  1. Visit https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Source_Code/Downloading_Source_Archives link to download the source of firefox.
    22  
    23  For example, download the firefox-53.0.3.source.tar.xz by open link https://archive.mozilla.org/pub/firefox/releases/53.0.3/source/ in browser.
    24  
    25  2. Unzip the downloaded file, and copy all files/dirs from {FIREFOX_SRC}/js/src/tests/ to this dir. After copy, the structure of this dir should be the following:
    26  ~/workspace/nebulas.io/src/github.com/nebulasio/go-nebulas/nf/nvm/test/mozilla_js_tests ❯❯❯ ls -alh
    27  total 320
    28  drwxr-xr-x@ 43 fbzhong  staff   1.3K Nov 17 19:47 .
    29  drwxr-xr-x@ 19 fbzhong  staff   608B Nov 18 01:10 ..
    30  -rw-r--r--@  1 fbzhong  staff   6.0K Nov 17 19:47 .DS_Store
    31  drwxr-xr-x@ 22 fbzhong  staff   704B Apr 11  2017 Intl
    32  -rw-r--r--@  1 fbzhong  staff   1.0K Feb 28  2017 Makefile.in
    33  -rw-r--r--@  1 fbzhong  staff   2.4K Jan 17  2017 README.txt
    34  -rw-r--r--@  1 fbzhong  staff    16K Jan 17  2017 browser.js
    35  -rw-r--r--@  1 fbzhong  staff   2.6K May 13  2016 compare_bench.py
    36  -rw-r--r--@  1 fbzhong  staff    13K May 13  2016 dupl-prop-changes.diff
    37  drwxr-xr-x@ 24 fbzhong  staff   768B Nov  1  2016 ecma
    38  drwxr-xr-x@ 15 fbzhong  staff   480B Nov  1  2016 ecma_2
    39  drwxr-xr-x@  7 fbzhong  staff   224B Feb 28  2017 ecma_2017
    40  drwxr-xr-x@ 24 fbzhong  staff   768B May 13  2016 ecma_3
    41  drwxr-xr-x@ 10 fbzhong  staff   320B Nov 17 19:47 ecma_3_1
    42  drwxr-xr-x@ 23 fbzhong  staff   736B May 13  2016 ecma_5
    43  drwxr-xr-x@ 35 fbzhong  staff   1.1K Apr 11  2017 ecma_6
    44  drwxr-xr-x@ 14 fbzhong  staff   448B Apr 11  2017 ecma_7
    45  -rw-r--r--@  1 fbzhong  staff   8.7K May 13  2016 function-arguments-caller-changes.diff
    46  -rw-r--r--@  1 fbzhong  staff     0B May 13  2016 js-test-driver-begin.js
    47  -rw-r--r--@  1 fbzhong  staff    21B May 13  2016 js-test-driver-end.js
    48  drwxr-xr-x@  6 fbzhong  staff   192B Nov  1  2016 js1_1
    49  drwxr-xr-x@ 14 fbzhong  staff   448B Nov  1  2016 js1_2
    50  drwxr-xr-x@ 11 fbzhong  staff   352B Nov  1  2016 js1_3
    51  drwxr-xr-x@  8 fbzhong  staff   256B Nov  1  2016 js1_4
    52  drwxr-xr-x@ 20 fbzhong  staff   640B Apr 11  2017 js1_5
    53  drwxr-xr-x@ 10 fbzhong  staff   320B Apr 11  2017 js1_6
    54  drwxr-xr-x@ 14 fbzhong  staff   448B Apr 11  2017 js1_7
    55  drwxr-xr-x@  9 fbzhong  staff   288B Apr 11  2017 js1_8
    56  drwxr-xr-x@ 12 fbzhong  staff   384B Apr 11  2017 js1_8_1
    57  drwxr-xr-x@  9 fbzhong  staff   288B Apr 11  2017 js1_8_5
    58  -rw-r--r--@  1 fbzhong  staff   673B Jan 17  2017 jsreftest.html
    59  -rw-r--r--@  1 fbzhong  staff    20K Apr 11  2017 jstests.list
    60  -rwxr-xr-x@  1 fbzhong  staff    16K Jan 17  2017 jstests.py
    61  drwxr-xr-x@ 18 fbzhong  staff   576B Nov 17 19:30 lib
    62  -rw-r--r--@  1 fbzhong  staff   289B Nov  1  2016 moz.build
    63  -rw-r--r--@  1 fbzhong  staff   5.7K May 13  2016 parsemark.py
    64  drwxr-xr-x@  9 fbzhong  staff   288B Jan 17  2017 shell
    65  -rw-r--r--@  1 fbzhong  staff    23K Feb 28  2017 shell.js
    66  drwxr-xr-x@ 14 fbzhong  staff   448B May 13  2016 style
    67  drwxr-xr-x@ 10 fbzhong  staff   320B May 13  2016 supporting
    68  drwxr-xr-x@ 18 fbzhong  staff   576B Apr 11  2017 test262
    69  -rwxr-xr-x@  1 fbzhong  staff   6.2K May 13  2016 update-test262.sh
    70  -rwxr-xr-x@  1 fbzhong  staff   1.9K Nov  1  2016 user.js
    71  
    72  3. Run the test named "TestRunMozillaJSTestSuite" under "github.com/nebulasio/go-nebulas/nf/nvm" package, then you will see the test results.