Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: lib/src/prism/tests/languages/powershell/function_feature.test

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/src/prism/tests/languages/powershell/function_feature.test
diff --git a/lib/src/prism/tests/languages/powershell/function_feature.test b/lib/src/prism/tests/languages/powershell/function_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..e7b07af93db869517670111c1822386b79422466
--- /dev/null
+++ b/lib/src/prism/tests/languages/powershell/function_feature.test
@@ -0,0 +1,398 @@
+ac cat chdir clc cli clp clv compare copy cp cpi cpp cvpa dbp del diff dir ebp
+echo epal epcsv epsn erase fc fl ft fw gal gbp gc gci gcs gdr gi gl gm gp gps
+group gsv gu gv gwmi iex ii ipal ipcsv ipsn irm iwmi iwr kill lp ls measure mi
+mount move mp mv nal ndr ni nv ogv popd ps pushd pwd rbp rd rdr ren ri rm rmdir
+rni rnp rp rv rvpa rwmi sal saps sasv sbp sc select set shcm si sl sleep sls
+sort sp spps spsv start sv swmi tee trcm type write
+
+Add-Computer Add-Content Add-History Add-Member Add-PSSnapin Add-Type
+Checkpoint-Computer Clear-Content Clear-EventLog Clear-History Clear-Item
+Clear-ItemProperty Clear-Variable Compare-Object Complete-Transaction
+Connect-PSSession ConvertFrom-Csv ConvertFrom-Json ConvertFrom-StringData
+Convert-Path ConvertTo-Csv ConvertTo-Html ConvertTo-Json ConvertTo-Xml
+Copy-Item Copy-ItemProperty Debug-Process Disable-ComputerRestore
+Disable-PSBreakpoint Disable-PSRemoting Disable-PSSessionConfiguration
+Disconnect-PSSession Enable-ComputerRestore Enable-PSBreakpoint
+Enable-PSRemoting Enable-PSSessionConfiguration Enter-PSSession Exit-PSSession
+Export-Alias Export-Clixml Export-Console Export-Csv Export-FormatData
+Export-ModuleMember Export-PSSession ForEach-Object Format-Custom Format-List
+Format-Table Format-Wide Get-Alias Get-ChildItem Get-Command
+Get-ComputerRestorePoint Get-Content Get-ControlPanelItem Get-Culture Get-Date
+Get-Event Get-EventLog Get-EventSubscriber Get-FormatData Get-Help Get-History
+Get-Host Get-HotFix Get-Item Get-ItemProperty Get-Job Get-Location Get-Member
+Get-Module Get-Process Get-PSBreakpoint Get-PSCallStack Get-PSDrive
+Get-PSProvider Get-PSSession Get-PSSessionConfiguration Get-PSSnapin Get-Random
+Get-Service Get-TraceSource Get-Transaction Get-TypeData Get-UICulture
+Get-Unique Get-Variable Get-WmiObject Group-Object Import-Alias Import-Clixml
+Import-Csv Import-LocalizedData Import-Module Import-PSSession Invoke-Command
+Invoke-Expression Invoke-History Invoke-Item Invoke-RestMethod Invoke-WebRequest
+Invoke-WmiMethod Join-Path Limit-EventLog Measure-Command Measure-Object
+Move-Item Move-ItemProperty New-Alias New-Event New-EventLog New-Item
+New-ItemProperty New-Module New-ModuleManifest New-Object New-PSDrive
+New-PSSession New-PSSessionConfigurationFile New-PSSessionOption
+New-PSTransportOption New-Service New-TimeSpan New-Variable New-WebServiceProxy
+Out-Default Out-File Out-GridView Out-Host Out-Null Out-Printer Out-String
+Pop-Location Push-Location Read-Host Receive-Job Receive-PSSession
+Register-EngineEvent Register-ObjectEvent Register-PSSessionConfiguration
+Register-WmiEvent Remove-Computer Remove-Event Remove-EventLog Remove-Item
+Remove-ItemProperty Remove-Job Remove-Module Remove-PSBreakpoint Remove-PSDrive
+Remove-PSSession Remove-PSSnapin Remove-TypeData Remove-Variable
+Remove-WmiObject Rename-Computer Rename-Item Rename-ItemProperty
+Reset-ComputerMachinePassword Resolve-Path Restart-Computer Restart-Service
+Restore-Computer Resume-Job Resume-Service Save-Help Select-Object Select-String
+Select-Xml Send-MailMessage Set-Alias Set-Content Set-Date Set-Item
+Set-ItemProperty Set-Location Set-PSBreakpoint Set-PSDebug
+Set-PSSessionConfiguration Set-Service Set-StrictMode Set-TraceSource
+Set-Variable Set-WmiInstance Show-Command Show-ControlPanelItem Show-EventLog
+Sort-Object Split-Path Start-Job Start-Process Start-Service Start-Sleep
+Start-Transaction Stop-Computer Stop-Job Stop-Process Stop-Service Suspend-Job
+Suspend-Service Tee-Object Test-ComputerSecureChannel Test-Connection
+Test-ModuleManifest Test-Path Test-PSSessionConfigurationFile Trace-Command
+Unblock-File Undo-Transaction Unregister-Event
+Unregister-PSSessionConfiguration Update-FormatData Update-Help Update-List
+Update-TypeData Use-Transaction Wait-Event Wait-Job Wait-Process Where-Object
+Write-Debug Write-Error Write-EventLog Write-Host Write-Output Write-Progress
+Write-Verbose Write-Warning
+
+----------------------------------------------------
+
+[
+ ["function", "ac"],
+ ["function", "cat"],
+ ["function", "chdir"],
+ ["function", "clc"],
+ ["function", "cli"],
+ ["function", "clp"],
+ ["function", "clv"],
+ ["function", "compare"],
+ ["function", "copy"],
+ ["function", "cp"],
+ ["function", "cpi"],
+ ["function", "cpp"],
+ ["function", "cvpa"],
+ ["function", "dbp"],
+ ["function", "del"],
+ ["function", "diff"],
+ ["function", "dir"],
+ ["function", "ebp"],
+ ["function", "echo"],
+ ["function", "epal"],
+ ["function", "epcsv"],
+ ["function", "epsn"],
+ ["function", "erase"],
+ ["function", "fc"],
+ ["function", "fl"],
+ ["function", "ft"],
+ ["function", "fw"],
+ ["function", "gal"],
+ ["function", "gbp"],
+ ["function", "gc"],
+ ["function", "gci"],
+ ["function", "gcs"],
+ ["function", "gdr"],
+ ["function", "gi"],
+ ["function", "gl"],
+ ["function", "gm"],
+ ["function", "gp"],
+ ["function", "gps"],
+ ["function", "group"],
+ ["function", "gsv"],
+ ["function", "gu"],
+ ["function", "gv"],
+ ["function", "gwmi"],
+ ["function", "iex"],
+ ["function", "ii"],
+ ["function", "ipal"],
+ ["function", "ipcsv"],
+ ["function", "ipsn"],
+ ["function", "irm"],
+ ["function", "iwmi"],
+ ["function", "iwr"],
+ ["function", "kill"],
+ ["function", "lp"],
+ ["function", "ls"],
+ ["function", "measure"],
+ ["function", "mi"],
+ ["function", "mount"],
+ ["function", "move"],
+ ["function", "mp"],
+ ["function", "mv"],
+ ["function", "nal"],
+ ["function", "ndr"],
+ ["function", "ni"],
+ ["function", "nv"],
+ ["function", "ogv"],
+ ["function", "popd"],
+ ["function", "ps"],
+ ["function", "pushd"],
+ ["function", "pwd"],
+ ["function", "rbp"],
+ ["function", "rd"],
+ ["function", "rdr"],
+ ["function", "ren"],
+ ["function", "ri"],
+ ["function", "rm"],
+ ["function", "rmdir"],
+ ["function", "rni"],
+ ["function", "rnp"],
+ ["function", "rp"],
+ ["function", "rv"],
+ ["function", "rvpa"],
+ ["function", "rwmi"],
+ ["function", "sal"],
+ ["function", "saps"],
+ ["function", "sasv"],
+ ["function", "sbp"],
+ ["function", "sc"],
+ ["function", "select"],
+ ["function", "set"],
+ ["function", "shcm"],
+ ["function", "si"],
+ ["function", "sl"],
+ ["function", "sleep"],
+ ["function", "sls"],
+ ["function", "sort"],
+ ["function", "sp"],
+ ["function", "spps"],
+ ["function", "spsv"],
+ ["function", "start"],
+ ["function", "sv"],
+ ["function", "swmi"],
+ ["function", "tee"],
+ ["function", "trcm"],
+ ["function", "type"],
+ ["function", "write"],
+
+ ["function", "Add-Computer"],
+ ["function", "Add-Content"],
+ ["function", "Add-History"],
+ ["function", "Add-Member"],
+ ["function", "Add-PSSnapin"],
+ ["function", "Add-Type"],
+ ["function", "Checkpoint-Computer"],
+ ["function", "Clear-Content"],
+ ["function", "Clear-EventLog"],
+ ["function", "Clear-History"],
+ ["function", "Clear-Item"],
+ ["function", "Clear-ItemProperty"],
+ ["function", "Clear-Variable"],
+ ["function", "Compare-Object"],
+ ["function", "Complete-Transaction"],
+ ["function", "Connect-PSSession"],
+ ["function", "ConvertFrom-Csv"],
+ ["function", "ConvertFrom-Json"],
+ ["function", "ConvertFrom-StringData"],
+ ["function", "Convert-Path"],
+ ["function", "ConvertTo-Csv"],
+ ["function", "ConvertTo-Html"],
+ ["function", "ConvertTo-Json"],
+ ["function", "ConvertTo-Xml"],
+ ["function", "Copy-Item"],
+ ["function", "Copy-ItemProperty"],
+ ["function", "Debug-Process"],
+ ["function", "Disable-ComputerRestore"],
+ ["function", "Disable-PSBreakpoint"],
+ ["function", "Disable-PSRemoting"],
+ ["function", "Disable-PSSessionConfiguration"],
+ ["function", "Disconnect-PSSession"],
+ ["function", "Enable-ComputerRestore"],
+ ["function", "Enable-PSBreakpoint"],
+ ["function", "Enable-PSRemoting"],
+ ["function", "Enable-PSSessionConfiguration"],
+ ["function", "Enter-PSSession"],
+ ["function", "Exit-PSSession"],
+ ["function", "Export-Alias"],
+ ["function", "Export-Clixml"],
+ ["function", "Export-Console"],
+ ["function", "Export-Csv"],
+ ["function", "Export-FormatData"],
+ ["function", "Export-ModuleMember"],
+ ["function", "Export-PSSession"],
+ ["function", "ForEach-Object"],
+ ["function", "Format-Custom"],
+ ["function", "Format-List"],
+ ["function", "Format-Table"],
+ ["function", "Format-Wide"],
+ ["function", "Get-Alias"],
+ ["function", "Get-ChildItem"],
+ ["function", "Get-Command"],
+ ["function", "Get-ComputerRestorePoint"],
+ ["function", "Get-Content"],
+ ["function", "Get-ControlPanelItem"],
+ ["function", "Get-Culture"],
+ ["function", "Get-Date"],
+ ["function", "Get-Event"],
+ ["function", "Get-EventLog"],
+ ["function", "Get-EventSubscriber"],
+ ["function", "Get-FormatData"],
+ ["function", "Get-Help"],
+ ["function", "Get-History"],
+ ["function", "Get-Host"],
+ ["function", "Get-HotFix"],
+ ["function", "Get-Item"],
+ ["function", "Get-ItemProperty"],
+ ["function", "Get-Job"],
+ ["function", "Get-Location"],
+ ["function", "Get-Member"],
+ ["function", "Get-Module"],
+ ["function", "Get-Process"],
+ ["function", "Get-PSBreakpoint"],
+ ["function", "Get-PSCallStack"],
+ ["function", "Get-PSDrive"],
+ ["function", "Get-PSProvider"],
+ ["function", "Get-PSSession"],
+ ["function", "Get-PSSessionConfiguration"],
+ ["function", "Get-PSSnapin"],
+ ["function", "Get-Random"],
+ ["function", "Get-Service"],
+ ["function", "Get-TraceSource"],
+ ["function", "Get-Transaction"],
+ ["function", "Get-TypeData"],
+ ["function", "Get-UICulture"],
+ ["function", "Get-Unique"],
+ ["function", "Get-Variable"],
+ ["function", "Get-WmiObject"],
+ ["function", "Group-Object"],
+ ["function", "Import-Alias"],
+ ["function", "Import-Clixml"],
+ ["function", "Import-Csv"],
+ ["function", "Import-LocalizedData"],
+ ["function", "Import-Module"],
+ ["function", "Import-PSSession"],
+ ["function", "Invoke-Command"],
+ ["function", "Invoke-Expression"],
+ ["function", "Invoke-History"],
+ ["function", "Invoke-Item"],
+ ["function", "Invoke-RestMethod"],
+ ["function", "Invoke-WebRequest"],
+ ["function", "Invoke-WmiMethod"],
+ ["function", "Join-Path"],
+ ["function", "Limit-EventLog"],
+ ["function", "Measure-Command"],
+ ["function", "Measure-Object"],
+ ["function", "Move-Item"],
+ ["function", "Move-ItemProperty"],
+ ["function", "New-Alias"],
+ ["function", "New-Event"],
+ ["function", "New-EventLog"],
+ ["function", "New-Item"],
+ ["function", "New-ItemProperty"],
+ ["function", "New-Module"],
+ ["function", "New-ModuleManifest"],
+ ["function", "New-Object"],
+ ["function", "New-PSDrive"],
+ ["function", "New-PSSession"],
+ ["function", "New-PSSessionConfigurationFile"],
+ ["function", "New-PSSessionOption"],
+ ["function", "New-PSTransportOption"],
+ ["function", "New-Service"],
+ ["function", "New-TimeSpan"],
+ ["function", "New-Variable"],
+ ["function", "New-WebServiceProxy"],
+ ["function", "Out-Default"],
+ ["function", "Out-File"],
+ ["function", "Out-GridView"],
+ ["function", "Out-Host"],
+ ["function", "Out-Null"],
+ ["function", "Out-Printer"],
+ ["function", "Out-String"],
+ ["function", "Pop-Location"],
+ ["function", "Push-Location"],
+ ["function", "Read-Host"],
+ ["function", "Receive-Job"],
+ ["function", "Receive-PSSession"],
+ ["function", "Register-EngineEvent"],
+ ["function", "Register-ObjectEvent"],
+ ["function", "Register-PSSessionConfiguration"],
+ ["function", "Register-WmiEvent"],
+ ["function", "Remove-Computer"],
+ ["function", "Remove-Event"],
+ ["function", "Remove-EventLog"],
+ ["function", "Remove-Item"],
+ ["function", "Remove-ItemProperty"],
+ ["function", "Remove-Job"],
+ ["function", "Remove-Module"],
+ ["function", "Remove-PSBreakpoint"],
+ ["function", "Remove-PSDrive"],
+ ["function", "Remove-PSSession"],
+ ["function", "Remove-PSSnapin"],
+ ["function", "Remove-TypeData"],
+ ["function", "Remove-Variable"],
+ ["function", "Remove-WmiObject"],
+ ["function", "Rename-Computer"],
+ ["function", "Rename-Item"],
+ ["function", "Rename-ItemProperty"],
+ ["function", "Reset-ComputerMachinePassword"],
+ ["function", "Resolve-Path"],
+ ["function", "Restart-Computer"],
+ ["function", "Restart-Service"],
+ ["function", "Restore-Computer"],
+ ["function", "Resume-Job"],
+ ["function", "Resume-Service"],
+ ["function", "Save-Help"],
+ ["function", "Select-Object"],
+ ["function", "Select-String"],
+ ["function", "Select-Xml"],
+ ["function", "Send-MailMessage"],
+ ["function", "Set-Alias"],
+ ["function", "Set-Content"],
+ ["function", "Set-Date"],
+ ["function", "Set-Item"],
+ ["function", "Set-ItemProperty"],
+ ["function", "Set-Location"],
+ ["function", "Set-PSBreakpoint"],
+ ["function", "Set-PSDebug"],
+ ["function", "Set-PSSessionConfiguration"],
+ ["function", "Set-Service"],
+ ["function", "Set-StrictMode"],
+ ["function", "Set-TraceSource"],
+ ["function", "Set-Variable"],
+ ["function", "Set-WmiInstance"],
+ ["function", "Show-Command"],
+ ["function", "Show-ControlPanelItem"],
+ ["function", "Show-EventLog"],
+ ["function", "Sort-Object"],
+ ["function", "Split-Path"],
+ ["function", "Start-Job"],
+ ["function", "Start-Process"],
+ ["function", "Start-Service"],
+ ["function", "Start-Sleep"],
+ ["function", "Start-Transaction"],
+ ["function", "Stop-Computer"],
+ ["function", "Stop-Job"],
+ ["function", "Stop-Process"],
+ ["function", "Stop-Service"],
+ ["function", "Suspend-Job"],
+ ["function", "Suspend-Service"],
+ ["function", "Tee-Object"],
+ ["function", "Test-ComputerSecureChannel"],
+ ["function", "Test-Connection"],
+ ["function", "Test-ModuleManifest"],
+ ["function", "Test-Path"],
+ ["function", "Test-PSSessionConfigurationFile"],
+ ["function", "Trace-Command"],
+ ["function", "Unblock-File"],
+ ["function", "Undo-Transaction"],
+ ["function", "Unregister-Event"],
+ ["function", "Unregister-PSSessionConfiguration"],
+ ["function", "Update-FormatData"],
+ ["function", "Update-Help"],
+ ["function", "Update-List"],
+ ["function", "Update-TypeData"],
+ ["function", "Use-Transaction"],
+ ["function", "Wait-Event"],
+ ["function", "Wait-Job"],
+ ["function", "Wait-Process"],
+ ["function", "Where-Object"],
+ ["function", "Write-Debug"],
+ ["function", "Write-Error"],
+ ["function", "Write-EventLog"],
+ ["function", "Write-Host"],
+ ["function", "Write-Output"],
+ ["function", "Write-Progress"],
+ ["function", "Write-Verbose"],
+ ["function", "Write-Warning"]
+]
+----------------------------------------------------
+
+Testing functions and aliases

Powered by Google App Engine
This is Rietveld 408576698