Package com.google.gxp.compiler.phpivot

Examples of com.google.gxp.compiler.phpivot.EphMissingPhError


            "quux",
            "</gxp:if>",
            "zarf",
            "</gxp:msg>");
    assertAlert(new PhMissingEphError(pos(4, 1), "<gxp:ph>"));
    assertAlert(new EphMissingPhError(pos(8, 1), "<gxp:eph>"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here


  }

  public void testPlaceholderEnd_missingPlaceholderStart() throws Exception {
    // with preceeding text
    compile("<gxp:msg>foo <gxp:eph/></gxp:msg>");
    assertAlert(new EphMissingPhError(pos(2, 14), "<gxp:eph>"));
    assertNoUnexpectedAlerts();

    // without preceeding text
    compile("<gxp:msg><gxp:eph/></gxp:msg>");
    assertAlert(new EphMissingPhError(pos(2, 10), "<gxp:eph>"));
    assertNoUnexpectedAlerts();

    // with preceeding ph/eph pair
    compile("<gxp:msg>",
            "<gxp:ph name='foo' example='bar'/><gxp:eval expr='1'/><gxp:eph/>",
            "<gxp:eph/>",
            "</gxp:msg>");
    assertAlert(new EphMissingPhError(pos(4, 1), "<gxp:eph>"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

            "quux",
            "</gxp:if>",
            "zarf",
            "</gxp:msg>");
    assertAlert(new PhMissingEphError(pos(4, 1), "<gxp:ph>"));
    assertAlert(new EphMissingPhError(pos(8, 1), "<gxp:eph>"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

  }

  public void testPlaceholderEnd_missingPlaceholderStart() throws Exception {
    // with preceeding text
    compile("<gxp:msg>foo <gxp:eph/></gxp:msg>");
    assertAlert(new EphMissingPhError(pos(2, 14), "<gxp:eph>"));
    assertNoUnexpectedAlerts();

    // without preceeding text
    compile("<gxp:msg><gxp:eph/></gxp:msg>");
    assertAlert(new EphMissingPhError(pos(2, 10), "<gxp:eph>"));
    assertNoUnexpectedAlerts();

    // with preceeding ph/eph pair
    compile("<gxp:msg>",
            "<gxp:ph name='foo' example='bar'/><gxp:eval expr='1'/><gxp:eph/>",
            "<gxp:eph/>",
            "</gxp:msg>");
    assertAlert(new EphMissingPhError(pos(4, 1), "<gxp:eph>"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.phpivot.EphMissingPhError

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.