Ticket #11709: 0004-Reduced-the-number-of-MapCSSStyleSourceFilterTest-ru.patch

File 0004-Reduced-the-number-of-MapCSSStyleSourceFilterTest-ru.patch, 1.3 KB (added by michael2402, 10 years ago)
  • test/performance/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSourceFilterTest.java

    From 2b9fe0c0626bd9875f39d2b01c8338ceb82d1621 Mon Sep 17 00:00:00 2001
    From: Michael Zangl <michael.zangl@student.kit.edu>
    Date: Thu, 23 Jul 2015 11:28:43 +0200
    Subject: [PATCH 4/4] Reduced the number of MapCSSStyleSourceFilterTest runs.
    
    ---
     .../josm/gui/mappaint/mapcss/MapCSSStyleSourceFilterTest.java         | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/test/performance/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSourceFilterTest.java b/test/performance/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSourceFilterTest.java
    index e828005..cb5d0e1 100644
    a b public class MapCSSStyleSourceFilterTest {  
    1818
    1919    private static final int TEST_RULE_COUNT = 10000;
    2020
     21    private static final int APPLY_CALLS = 20000;
     22
    2123    private class CssGenerator {
    2224        StringBuilder sb = new StringBuilder();
    2325        private KeyValueDataGenerator generator;
    public class MapCSSStyleSourceFilterTest {  
    7476        }
    7577    }
    7678
    77     private static final int APPLY_CALLS = 100000;
    78 
    7979    /**
    8080     * Prepare the test.
    8181     */