shellurl.tst
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 4k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. BVT Check-in Test Cases for ShellUrl parsing:
  2. 1. Absolute Shell Urls:
  3. ===========================================
  4. 1.1 Navigation:
  5. -------------------------------------------
  6. desktop
  7. desktop/
  8. /desktop
  9. /desktop/
  10. desktop
  11. desktop/
  12. desktop
  13. desktop/
  14. /desktop
  15. /desktop/
  16. desktop
  17. deskTop/
  18. My compUter    <Asserts?>
  19. My compUter/
  20. /My compUter
  21. /My compUter/
  22. My compUter
  23. My compUter/
  24. My compUter
  25. My compUter/
  26. /My compUter
  27. /My compUter/
  28. My compUter
  29. My compUter/
  30. My compUter/Control Panel
  31. E:
  32. E:dir1
  33. E:dir1
  34. C:Program Files
  35. C:Program Files
  36. \bryanst2test
  37. \bryansttest
  38. \bryanst2
  39. \bryanst2
  40. \zekelsvr     (Check for Perf)
  41. 1.2 ShellExec:
  42. -------------------------------------------
  43. My compUter/Control Panel/Mouse
  44. My compUter/Control Panel/Add/Remove Programs
  45. My compUter/E:dir1batch.bat
  46. My compUter/E:dir1batch.bat Arg1 Arg2
  47. E:dir1batch.bat           (batch.bat is available from \bryanst2test)
  48. E:dir1batch.bat Arg1 Arg2
  49. E:Program Filesbatch.bat
  50. E:Program Filesbatch.bat Arg1 Arg2
  51. \bryanst2testdosdebugdos
  52. \bryanst2testdosdebugdos.exe
  53. \bryanst2testsimpdebugsimp.exe
  54. \bryanst2testsimpdebugsimp Arg1 Arg2
  55. \bryanst2testsimpdebugsimp.exe Arg1 Arg2
  56. 2. Shell Urls Relative to the Current Working Directory (CWD):
  57.    NOTE: This is only available to AddressBars that are connected
  58.          to a browser window.
  59. ===========================================
  60. 2.1 Navigation:
  61. -------------------------------------------
  62. ..
  63. ../
  64. .... (CWD=My ComputerControl Panel)
  65. .... (CWD=http://bryanst2/)
  66. .... (CWD=E:)
  67. ..printers (CWD=My ComputerControl Panel)
  68. ..Program Files (CWD=E:dir1)
  69. Program Files (CWD=E:)
  70. ......Printers..Control PanelMouse (CWD: My compUter/C:windowssystem)
  71. 2.2 ShellExec:
  72. -------------------------------------------
  73. Mouse (CWD=My Computer/Control Panel)
  74. ../Control PanelMouse (CWD=My Computer/Printers)
  75. Add/Remove Programs (CWD=My Computer/Control Panel)
  76. ../Control Panel/Add/Remove Programs  (CWD=My Computer/Printers)
  77. batch.bat  (CWD=E:dir1)
  78. batch.bat Arg1 Arg2  (CWD=E:dir1)
  79. ..batch.bat  (CWD=E:dir1dir2)
  80. ..batch.bat Arg1 Arg2  (CWD=E:dir1dir2)
  81. 3. Shell Urls Relative to a Path Directory ("Desktop"; "Desktop/My Computer"):
  82. ===========================================
  83. 3.1 Navigation:
  84. -------------------------------------------
  85. Printers
  86. Control Panel
  87. My Computer
  88. My Computer/
  89. My Computer/Control Panel
  90. 3.2 ShellExec:
  91. -------------------------------------------
  92. My Computer/Control Panel/Mouse
  93. Control Panel/Mouse
  94. My Computer/Control Panel/Add/Remove Programs
  95. Control Panel/Add/Remove Programs
  96. My ComputerE:dir1batch.bat
  97. My ComputerE:dir1batch.bat Arg1 Arg2
  98. 4. Other URLs/AutoSearch:
  99. ===========================================
  100. http://bryanst2/
  101. ie40
  102. //bryanst
  103. ftp://ftp.microsoft.com
  104. file://E:dir1
  105. file://\bryanst2public
  106. One Two
  107. ? Three Four
  108. go Five Six
  109. ? SevenEight
  110. go NineTen
  111. 5. PERF
  112. ===========================================
  113. NOTE: Iterating through ISFs that contain a large number of
  114.       items or folders takes a long time.  For this reason,
  115.       we special case the File System and UNC (Network Neighborhood)
  116.       sections of the Shell Name Space to parse in quicker
  117.       method.  This is possible because those items
  118.       cannot contain '' chars. 
  119. Make the following Shell Folders and items:
  120. C:winntsystem32one two.exe
  121. C:winntsystem32one two three (Directory)
  122. C:winntsystem32one two three four.exe
  123. Enter the following commands:
  124. C:winntsystem32one two Arg1 Arg2
  125. C:winntsystem32one two three  (Okay if "one two.exe" is launched because of ambiguity)
  126. C:winntsystem32one two three (Folder should open)
  127. C:winntsystem32one two three four Arg1 Arg2
  128. C:winntsystem32Zoo Zed Zad  (File doesn't exist, and it will cause navigation)