OLD | NEW |
1 Writing Unit and Rendering Tests | 1 Writing Unit and Rendering Tests |
2 ================================ | 2 ================================ |
3 | 3 |
4 Writing a Unit Test | 4 Writing a Unit Test |
5 ------------------- | 5 ------------------- |
6 | 6 |
7 1. Add a file `tests/NewUnitTest.cpp`: | 7 1. Add a file `tests/NewUnitTest.cpp`: |
8 | 8 |
9 <!--?prettify lang=cc?--> | 9 <!--?prettify lang=cc?--> |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 2. Add a line to `gyp/gmslides.gypi`: | 57 2. Add a line to `gyp/gmslides.gypi`: |
58 | 58 |
59 '../gm/newgmtest.cpp', | 59 '../gm/newgmtest.cpp', |
60 | 60 |
61 3. Recompile and run test: | 61 3. Recompile and run test: |
62 | 62 |
63 ./gyp_skia | 63 ./gyp_skia |
64 ninja -C out/Debug dm | 64 ninja -C out/Debug dm |
65 out/Debug/dm --match newgmtest | 65 out/Debug/dm --match newgmtest |
| 66 |
| 67 4. Run the GM inside SampleApp: |
| 68 |
| 69 ./gyp_skia |
| 70 ninja -C out/Debug SampleApp |
| 71 out/Debug/SampleApp --slide GM:newgmtest |
| 72 |
| 73 On MacOS, try this: |
| 74 |
| 75 out/Debug/SampleApp.app/Contents/MacOS/SampleApp --slide GM:newgmtest |
OLD | NEW |