author Nick Alexander <nalexander@mozilla.com>
Tue, 07 Nov 2017 20:26:43 -0800
changeset 399327 690e265c684ce70ecb89355314fd1574bb421f0b
parent 398289 976c7e62b6378202ad609d74bb7af904da83ac9a
permissions -rw-r--r--
Bug 1411654 - Part 2: Update Robolectric to 3.5.1. r=mcomella There were a few API changes, mostly around explicitly creating Services/Activities/ContentProvider instances, but they were pretty easy to address. Sadly, Robolectric doesn't really work with the new aapt2 processing in Android-Gradle plugin 3.0+ -- see in particular https://github.com/robolectric/robolectric/issues/3333#issuecomment-324300418 -- so we have to opt-out of the new implementation for now. Hopefully plugin 3.1+ will address these issues, which are widespread. MozReview-Commit-ID: dlbd32kMs6

component_engine = ('Core', 'JavaScript Engine')
component_gc     = ('Core', 'JavaScript: GC')
component_jit    = ('Core', 'JavaScript Engine: JIT')

with Files("**"):
    BUG_COMPONENT = component_engine

for header in ('GCAnnotations.h', 'GCAPI.h', 'HeapAPI.h', 'RootingAPI.h', 'SliceBudget.h', 'SweepingAPI.h', 'TraceKind.h', 'TracingAPI.h', 'WeakMapPtr.h', 'GCHashTable.h', 'GCPolicyAPI.h', 'GCVariant.h', 'GCVector.h'):
    with Files('public/' + header):
        BUG_COMPONENT = component_gc

with Files('public/TrackedOptimizationInfo.h'):
    BUG_COMPONENT = component_jit

with Files("src/**"):
    SCHEDULES.inclusive += ['jittest', 'jsreftest']

with Files("public/**"):
    SCHEDULES.inclusive += ['jittest', 'jsreftest']