瀏覽代碼

Ninja-fix formatting of CONTRIBUTING.md

Dave Erdman 5 年之前
父節點
當前提交
01f138a761
共有 1 個文件被更改,包括 10 次插入6 次删除
  1. 10 6
      CONTRIBUTING.md

+ 10 - 6
CONTRIBUTING.md

@@ -278,17 +278,21 @@ We use [shot](https://github.com/Karumi/Shot) for taking screenshots and compare
     - this will fire up docker & emulator to ensure that screenshots look the same
 - creating own UI comparision tests: 
     - add IntentsTestRule for launching activity directly:
+
     ```java
- @Rule public IntentsTestRule<SettingsActivity> activityRule = new IntentsTestRule<>(SettingsActivity.class,
+    @Rule public IntentsTestRule<SettingsActivity> activityRule = new IntentsTestRule<>(SettingsActivity.class,
                                                                                         true,
                                                                                         false);
-```
+    ```
+
     -  in test method:
+
     ```java 
-Activity activity = activityRule.launchActivity(null); 
-…do something, e.g. navigate, create folder, etc. … 
-  Screenshot.snapActivity(activity).record();
-  ```
+    Activity activity = activityRule.launchActivity(null); 
+    …do something, e.g. navigate, create folder, etc. … 
+     Screenshot.snapActivity(activity).record();
+    ```
+
     - best practise is to first create test with emulator too see behaviour and then create screenshots
 
 ## File naming