com.google.caja.parser.quasiliteral
Class AlphaRenamingTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.google.caja.util.CajaTestCase
com.google.caja.parser.quasiliteral.AlphaRenamingTest
- All Implemented Interfaces:
- junit.framework.Test
public class AlphaRenamingTest
- extends CajaTestCase
Methods inherited from class com.google.caja.util.CajaTestCase |
assertArrayEquals, assertCloneable, assertDeepEquals, assertMessage, assertMessage, assertMessagesLessSevereThan, assertNoErrors, assertNoMessage, assertNoWarnings, checkHeadless, css, css, cssDecls, cssDecls, dataFromResource, formatShort, fromResource, fromResource, fromString, fromString, fromString, html, htmlFragment, js, js, js, jsExpr, jsExpr, markup, markupFragment, minify, plain, quasi, render, render, renderProgram, runTest, setUp, xml, xmlFragment |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, setName, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AlphaRenamingTest
public AlphaRenamingTest()
tearDown
public void tearDown()
throws java.lang.Exception
- Overrides:
tearDown
in class CajaTestCase
- Throws:
java.lang.Exception
testLiteral
public final void testLiteral()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGlobals
public final void testGlobals()
throws java.lang.Exception
- Throws:
java.lang.Exception
testFreeGlobals
public final void testFreeGlobals()
throws java.lang.Exception
- Throws:
java.lang.Exception
testPropertyNames
public final void testPropertyNames()
throws java.lang.Exception
- Throws:
java.lang.Exception
testObjects1
public final void testObjects1()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGlobalThis
public final void testGlobalThis()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGlobalArguments
public final void testGlobalArguments()
throws java.lang.Exception
- Throws:
java.lang.Exception
testFunctionConstructor
public final void testFunctionConstructor()
throws java.lang.Exception
- Throws:
java.lang.Exception
testFunctionDeclaration
public final void testFunctionDeclaration()
throws java.lang.Exception
- Throws:
java.lang.Exception
testRecursiveFunctionDeclaration
public final void testRecursiveFunctionDeclaration()
throws java.lang.Exception
- Throws:
java.lang.Exception
testLocalThis
public final void testLocalThis()
throws java.lang.Exception
- Throws:
java.lang.Exception
testLocalArguments
public final void testLocalArguments()
throws java.lang.Exception
- Throws:
java.lang.Exception
testCatch
public final void testCatch()
throws java.lang.Exception
- Throws:
java.lang.Exception
testMaskingFunctionDeclarations
public final void testMaskingFunctionDeclarations()
throws java.lang.Exception
- Throws:
java.lang.Exception
testMaskingFunctionConstructors
public final void testMaskingFunctionConstructors()
throws java.lang.Exception
- Throws:
java.lang.Exception
testMaskingGlobals
public final void testMaskingGlobals()
throws java.lang.Exception
- Throws:
java.lang.Exception
testMaskingLocals
public final void testMaskingLocals()
throws java.lang.Exception
- Throws:
java.lang.Exception
testMaskingFormals
public final void testMaskingFormals()
throws java.lang.Exception
- Throws:
java.lang.Exception
testVarArguments
public final void testVarArguments()
throws java.lang.Exception
- Throws:
java.lang.Exception
testVarMaskingFunctionSelfName
public final void testVarMaskingFunctionSelfName()
throws java.lang.Exception
- Throws:
java.lang.Exception
testMultiDeclaration
public final void testMultiDeclaration()
throws java.lang.Exception
- Throws:
java.lang.Exception
testSynthetics
public final void testSynthetics()
throws java.lang.Exception
- Throws:
java.lang.Exception
testSanityChecks
public final void testSanityChecks()
throws java.lang.Exception
- Throws:
java.lang.Exception
testRenamingOfPseudoKeywords
public final void testRenamingOfPseudoKeywords()
throws java.lang.Exception
- Throws:
java.lang.Exception
testDuplicateFormals
public final void testDuplicateFormals()
throws java.lang.Exception
- Throws:
java.lang.Exception
assertRenamed
private void assertRenamed(java.lang.String golden,
java.lang.String input,
java.lang.String... globals)
throws java.lang.Exception
- Throws:
java.lang.Exception
synth
private static Expression synth(Expression e)
Copyright (C) 2008 Google Inc.
Licensed under the Apache License, Version 2.0