Parameters

 expr - anything; expression to test

Description

 • The Test[GetGeneratedMenu] command returns a representation of the context-sensitive menu that would be generated by the expression expr.

Examples

 > $\mathrm{with}\left(\mathrm{ContextMenu}\right):$
 > $\mathrm{with}\left(\mathrm{ContextMenu}\left[\mathrm{Test}\right]\right):$
 > $\mathrm{GetGeneratedMenu}\left(\mathrm{sin}\left(x\right)\right)$
 $\left[{"Apply a Command"}{,}{"Assign to a Name"}{,}\left[{"Differentiate"}{,}\left[{"x"}\right]\right]{,}{"Evaluate"}{,}{"Evaluate at a Point"}{,}\left[{"Integrate"}{,}\left[{"x"}\right]\right]{,}{"Limit"}{,}\left[{"Plots"}{,}\left[{"2-D Plot"}{,}\left[{"3-D Plot"}{,}\left[{"x, ?"}{,}{"?, x"}\right]\right]{,}\left[{"2-D Implicit Plot"}{,}\left[{"x, ?"}{,}{"?, x"}\right]\right]{,}\left[{"3-D Implicit Plot"}{,}\left[{"x, ?, ?"}{,}{"?, x, ?"}{,}{"?, ?, x"}\right]\right]{,}{"Plot Builder"}\right]\right]{,}\left[{"Series"}{,}\left[\left[{"Asymptotic series"}{,}\left[{"x"}\right]\right]{,}{"Formal Power Series"}{,}\left[{"Series"}{,}\left[{"x"}\right]\right]\right]\right]{,}\left[{"Simplify"}{,}\left[{"Assuming Integer"}{,}{"Assuming Non-negative"}{,}{"Assuming Positive"}{,}{"Assuming Real"}{,}{"Assuming Real Range"}{,}{"Constant"}{,}{"Simplify"}{,}{"Size"}{,}{"Symbolic"}{,}{"Trig"}{,}{"With Side Relations..."}\right]\right]{,}\left[{"Solve"}{,}\left[\left[{"Isolate Expression for"}{,}\left[{"x"}\right]\right]{,}{"Numerically Solve"}{,}{"Numerically Solve from point"}{,}\left[{"Obtain Solutions for"}{,}\left[{"x"}\right]\right]{,}{"Solve"}{,}{"Solve \left(explicit\right)"}{,}{"Solve \left(general solution\right)"}{,}\left[{"Solve for Variable"}{,}\left[{"x"}\right]\right]\right]\right]{,}{"|"}{,}\left[{"Complex Maps"}{,}\left[{"Argument"}{,}{"Conjugate"}{,}{"Imaginary Part"}{,}{"Modulus"}{,}{"Polar Form"}{,}{"Real Part"}{,}{"a + bI Form"}\right]\right]{,}\left[{"Constructions"}{,}\left[\left[{"Definite Integral"}{,}\left[{"x"}\right]\right]{,}\left[{"Derivative"}{,}\left[{"x"}\right]\right]{,}\left[{"Evaluate At"}{,}\left[{"x"}\right]\right]{,}\left[{"Integral"}{,}\left[{"x"}\right]\right]{,}{"Limit"}{,}\left[{"Product"}{,}\left[{"x"}\right]\right]{,}\left[{"Sum"}{,}\left[{"x"}\right]\right]\right]\right]{,}\left[{"Conversions"}{,}\left[{"Equate to 0"}{,}{"Exponential"}{,}{"LaTeX"}{,}{"MathML"}{,}\left[{"Operator"}{,}\left[{"x"}\right]\right]{,}{"To String"}\right]\right]{,}\left[{"Integer Functions"}{,}\left[{"Ceiling"}{,}{"Floor"}{,}{"Fractional Part"}{,}{"Round"}{,}{"Truncate"}\right]\right]{,}\left[{"Integral Transforms"}{,}\left[{"Fourier Cosine Transform"}{,}{"Fourier Sine Transform"}{,}{"Fourier Transform"}{,}{"Hankel Transform"}{,}{"Hilbert Transform"}{,}{"Inverse Fourier Transform"}{,}{"Inverse Hilbert Transform"}{,}{"Inverse Laplace Transform"}{,}{"Inverse Mellin Transform"}{,}{"Laplace Transform"}{,}{"Mellin Transform"}\right]\right]{,}\left[{"Language Conversions"}{,}\left[{"C"}{,}{"C Sharp"}{,}{"Fortran"}{,}{"Java"}{,}{"JavaScript"}{,}{"Julia"}{,}{"MATLAB"}{,}{"Perl"}{,}{"Python"}{,}{"R"}{,}{"Swift"}{,}{"VisualBasic"}\right]\right]{,}\left[{"Sequence"}{,}\left[{"x"}\right]\right]{,}\left[{"Units"}{,}\left[\left[{"Affix Unit"}{,}\left[\left[{"Atomic"}{,}\left[{"bohr"}{,}{"electron"}{,}{"electron mass"}{,}{"electron per second"}{,}{"electron*bohr"}{,}{"electron*bohr^2/volt"}{,}{"electron/bohr^2"}{,}{"electron^2/hartree"}{,}{"electron_mass*bohr/second^2"}{,}{"hartree"}{,}{"hartree per second"}{,}{"hartree/bohr"}{,}{"hartree/tesla"}{,}{"hartree/tesla*bohr^3"}{,}{"hartree/tesla^2"}{,}{"permittivity"}{,}{"planck"}{,}{"second"}{,}{"tesla"}{,}{"volt"}{,}{"volt*second"}{,}{"volt*second^2/electron"}{,}{"volt/bohr"}\right]\right]{,}\left[{"CGS"}{,}\left[{"barye"}{,}{"centimeter"}{,}{"dyne"}{,}{"erg"}{,}{"erg/second"}{,}{"g"}{,}{"gram"}{,}{"kyne"}{,}{"radian"}{,}{"second"}{,}{"steradian"}\right]\right]{,}\left[{"EMU"}{,}\left[{"abampere"}{,}{"abcoulomb"}{,}{"abfarad"}{,}{"abhenry"}{,}{"abohm"}{,}{"absiemens"}{,}{"abtesla"}{,}{"abvolt"}{,}{"abweber"}{,}{"barye"}{,}{"centimeter"}{,}{"dyne"}{,}{"erg"}{,}{"erg/second"}{,}{"g"}{,}{"gram"}{,}{"joule"}{,}{"kilogram"}{,}{"kyne"}{,}{"meter"}{,}{"newton"}{,}{"pascal"}{,}{"radian"}{,}{"second"}{,}{"steradian"}{,}{"watt"}\right]\right]{,}\left[{"FPS"}{,}\left[{"foot"}{,}{"horsepower"}{,}{"pound"}{,}{"poundal"}{,}{"poundal*foot"}{,}{"poundforce/inch^2"}{,}{"radian"}{,}{"second"}{,}{"steradian"}\right]\right]{,}\left[{"MTS"}{,}\left[{"kilojoule"}{,}{"kilowatt"}{,}{"meter"}{,}{"pieze"}{,}{"radian"}{,}{"second"}{,}{"steradian"}{,}{"sthene"}{,}{"tonne"}\right]\right]{,}\left[{"SI"}{,}\left[{"coulomb"}{,}{"farad"}{,}{"henry"}{,}{"joule"}{,}{"kilogram"}{,}{"lumen"}{,}{"lux"}{,}{"meter"}{,}{"newton"}{,}{"ohm"}{,}{"pascal"}{,}{"radian"}{,}{"second"}{,}{"siemens"}{,}{"steradian"}{,}{"tesla"}{,}{"volt"}{,}{"watt"}{,}{"weber"}\right]\right]\right]\right]\right]\right]{,}{"|"}{,}\left[{"Optimization"}{,}\left[{"Maximize \left(local\right)"}{,}{"Minimize \left(local\right)"}{,}{"Optimization Assistant"}\right]\right]{,}\left[{"Signal Processing"}{,}\left[\left[{"Signal Generation"}{,}\left[{"Generate Signal Using Sample Rate"}{,}{"Generate Signal Using Time Range"}\right]\right]{,}\left[{"Visualizations"}{,}\left[{"Generate Periodogram Using Sample Rate"}{,}{"Generate Periodogram Using Time Range"}{,}{"Generate Signal Plot Using Sample Rate"}{,}{"Generate Signal Plot Using Time Range"}\right]\right]\right]\right]{,}{"|"}{,}{"Help on Command"}\right]$ (1)