Package org.rendersnake.jquery

Source Code of org.rendersnake.jquery.JQueryCanvasTest

package org.rendersnake.jquery;

import static org.rendersnake.jquery.JQueryCanvasFactory.*;

import java.io.IOException;

import junit.framework.TestCase;

import org.rendersnake.Hash;

public class JQueryCanvasTest extends TestCase {

    public void testDollar() {
        JQueryCanvas jq = $("row").addClass("hidden");
        assertEquals("$('row').addClass('hidden');", jq.toJavascript());
    }

    public void testThis() throws IOException {
        JQueryCanvas jq = new JQueryCanvas();
        jq.jQuery("span", "this");
        assertEquals("$(\'span\',this);", jq.toJavascript());
    }
   
    // public JQueryCanvas $() { return new JQueryCanvas(); }
   
    public void testSetup() {
        JQueryCanvas jc = $().ajaxSetup(new Hash("cache",false));
        System.out.println(jc.toJavascript());
    }
}
TOP

Related Classes of org.rendersnake.jquery.JQueryCanvasTest

TOP
Copyright © 2018 www.massapi.com. 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.