|
5 | 5 | > [!IMPORTANT] |
6 | 6 | > In order to keep the version PRs clean, you will need to use different branches depending on whether you want to run the jQuery tests, build jQuery, or run the A/B CVE tests. For the A/B CVE tests, you need to checkout the `main` branch. For the jQuery tests or to build jQuery, you need to checkout the branch of the version you are interested in, e.g. `1.6.5-sec`. |
7 | 7 |
|
| 8 | +## Prerequisites |
| 9 | + |
| 10 | +- For older jQuery versions (1.2.6 through 1.5.2<!-- update as needed -->), you'll need to install php 5.6 |
| 11 | + - For Macs, We recommend using [homebrew-php](https://github.com/shivammathur/homebrew-php) |
| 12 | + |
8 | 13 | ## Testing |
9 | 14 |
|
10 | 15 | ### jQuery tests |
11 | 16 |
|
12 | | -#### How to run jQuery tests |
13 | | - |
14 | | -##### 1.2.6 / 1.2.7-sec |
| 17 | +#### 1.2.6 / 1.2.7-sec |
15 | 18 |
|
16 | 19 | - Checkout the `1.2.6` or `1.2.7-sec` branch |
17 | | -- Run `make test` from the root folder of the repo |
| 20 | +- Run `make` from the root folder of the repo |
18 | 21 | - Open `/tests/index.html` in your browser |
19 | 22 |
|
20 | | -##### 1.3.2 / 1.3.3-sec |
| 23 | +#### 1.3.2 / 1.3.3-sec |
21 | 24 |
|
22 | 25 | <!-- - Checkout the `1.3.2` or `1.3.3-sec` branch |
23 | 26 | - Run `make test` from the root folder of the repo |
24 | 27 | - Open `/tests/index.html` in your browser --> |
25 | 28 |
|
26 | | -##### 1.4.4 / 1.4.5-sec |
27 | | - |
28 | | -###### Prerequisites |
29 | | - |
30 | | -- Install php 5.6 |
31 | | - - For Macs, We recommend using [homebrew-php](https://github.com/shivammathur/homebrew-php) |
32 | | - |
33 | | -###### Running the tests |
| 29 | +#### 1.4.4 / 1.4.5-sec |
34 | 30 |
|
35 | 31 | - Checkout the `1.4.4` or `1.4.5-sec` branch |
36 | 32 | - From the root folder of the repo: |
| 33 | + - `git clone git@github.com:jquery/sizzle.git --depth=1 src/sizzle` |
| 34 | + - `cd src/sizzle` |
| 35 | + - `git fetch --tags` |
| 36 | + - Get corresponding sizzle branch for this jQuery version/release: |
| 37 | + - `git checkout 1.4.4` |
| 38 | + - `cd ../..` |
37 | 39 | - `git clone git@github.com:qunitjs/qunit.git --depth=1 test/qunit` |
38 | 40 | - `cd test/qunit` |
39 | 41 | - Get the closest QUnit commit to the jQuery version/release: |
40 | 42 | - `git checkout 25e4489a5f280e8f0a22ca99ecb401338bb75308` |
41 | | - - `cd ../..` |
42 | | - - `git clone git@github.com:jquery/sizzle.git --depth=1 src/sizzle` |
43 | | - - `cd src/sizzle` |
44 | | - - `git fetch --tags` |
45 | | - - Get corresponding sizzle branch for this jQuery version/release: |
46 | | - - `git checkout 1.4.4` |
47 | 43 | - `cd ..` |
48 | | - - Create symlink to src in test folder: |
49 | | - - `ln -s ../src src` |
| 44 | + - Create symlink to src in test folder: |
| 45 | + - `ln -s ../src src` |
50 | 46 | - `cd ..` |
51 | 47 | - `make jquery` |
52 | | - - Run php server: |
53 | | - - `php -S 127.0.0.1:8000 -t test` |
| 48 | + - Run php server: |
| 49 | + - `php -S 127.0.0.1:8000 -t test` |
54 | 50 | - Open `/tests/index.html` in your browser |
55 | 51 |
|
56 | | -##### 1.6.4 / 1.6.5-sec |
| 52 | +#### 1.5.2 / 1.5.3-sec |
57 | 53 |
|
58 | | -###### Prerequisites |
59 | | - |
60 | | -- Install php 5.6 |
61 | | - - For Macs, We recommend using [homebrew-php](https://github.com/shivammathur/homebrew-php) |
| 54 | +- Checkout the `1.5.2` or `1.5.3-sec` branch |
| 55 | +- From the root folder of the repo: |
| 56 | + - `cd test` |
| 57 | + - Create symlink to src in test folder: |
| 58 | + - `ln -s ../src src` |
| 59 | + - `cd ..` |
| 60 | + - `make` |
| 61 | + - Run php server: |
| 62 | + - `php -S 127.0.0.1:8000 -t test` |
| 63 | +- Open `/tests/index.html` in your browser |
62 | 64 |
|
63 | | -###### Running the tests |
| 65 | +#### 1.6.4 / 1.6.5-sec |
64 | 66 |
|
65 | 67 | - Checkout the `1.6.4` or `1.6.5-sec` branch |
66 | 68 | - Run php server from the root folder of the repo: `php -S 127.0.0.1:8000` |
@@ -115,10 +117,17 @@ You can run the A/B tests locally in CI mode or manually in the browser |
115 | 117 | - `git clone git@github.com:jquery/sizzle.git --depth=1 src/sizzle` |
116 | 118 | - `cd src/sizzle` |
117 | 119 | - `git fetch --tags` |
118 | | - - Get corresponding sizzle branch for this jQuery version/release: |
119 | | - - `git checkout 1.4.4` |
| 120 | + - Get corresponding sizzle branch for this jQuery version/release: |
| 121 | + - `git checkout 1.4.4` |
120 | 122 | - `cd ../..` |
121 | 123 | - Run `make jquery` |
122 | 124 | - This will output `./dist/jquery.js` |
123 | 125 |
|
| 126 | +#### 1.5.2 / 1.5.3-sec |
| 127 | + |
| 128 | +- Checkout the `1.5.2` or `1.5.3-sec` branch |
| 129 | +- From the root folder of the repo: |
| 130 | + - Run `make` |
| 131 | + - This will output `./dist/jquery.js` |
| 132 | + |
124 | 133 | ### 1.6.4 / 1.6.5-sec |
0 commit comments