Package com.google.collide.client.diff.DeltaInfoBar

Examples of com.google.collide.client.diff.DeltaInfoBar.Css


        .setUnchanged(UNCHANGED_LINES);
    DeltaInfoBar.Resources res = (DeltaInfoBar.Resources) GWT.create(DeltaInfoBar.Resources.class);
    DeltaInfoBar deltaInfoBar = DeltaInfoBar.create(res, diffStats, false);
    DivElement barsDiv = deltaInfoBar.getView().barsDiv;

    Css css = res.deltaInfoBarCss();

    int addedBars = barsDiv.getElementsByClassName(css.added()).getLength();
    int removedBars = barsDiv.getElementsByClassName(css.deleted()).getLength();
    int modifiedBars = barsDiv.getElementsByClassName(css.modified()).getLength();
    int unmodifiedBars = barsDiv.getElementsByClassName(css.unmodified()).getLength();

    // verify the total count
    assertEquals(DeltaInfoBar.BAR_COUNT, addedBars + removedBars + modifiedBars + unmodifiedBars);

    // Because BAR_COUNT can change, and testing the exact amounts involves
View Full Code Here

TOP

Related Classes of com.google.collide.client.diff.DeltaInfoBar.Css

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.