Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

159 lines
4.5 KiB

  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. \\bryanst2\test
  37. \\bryanst\test
  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:\dir1\batch.bat
  46. My compUter/E:\dir1\batch.bat Arg1 Arg2
  47. E:\dir1\batch.bat (batch.bat is available from \\bryanst2\test)
  48. E:\dir1\batch.bat Arg1 Arg2
  49. E:\Program Files\batch.bat
  50. E:\Program Files\batch.bat Arg1 Arg2
  51. \\bryanst2\test\dos\debug\dos
  52. \\bryanst2\test\dos\debug\dos.exe
  53. \\bryanst2\test\simp\debug\simp.exe
  54. \\bryanst2\test\simp\debug\simp Arg1 Arg2
  55. \\bryanst2\test\simp\debug\simp.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 Computer\Control Panel)
  65. ..\.. (CWD=http://bryanst2/)
  66. ..\.. (CWD=E:\)
  67. ..\printers (CWD=My Computer\Control Panel)
  68. ..\Program Files\ (CWD=E:\dir1)
  69. Program Files\ (CWD=E:\)
  70. ..\..\..\Printers\..\Control Panel\Mouse (CWD: \My compUter/C:\windows\system\)
  71. 2.2 ShellExec:
  72. -------------------------------------------
  73. Mouse (CWD=My Computer/Control Panel)
  74. ../Control Panel\Mouse (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:\dir1\dir2)
  80. ..\batch.bat Arg1 Arg2 (CWD=E:\dir1\dir2)
  81. 3. Shell Urls Relative to a Path Directory ("Desktop"; "Desktop/My Computer"):
  82. ===========================================
  83. 3.1 Navigation:
  84. -------------------------------------------
  85. Printer
  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 Computer\E:\dir1\batch.bat
  97. My Computer\E:\dir1\batch.bat Arg1 Arg2
  98. 4. Other URLs/AutoSearch:
  99. ===========================================
  100. http://bryanst2/
  101. http://chikuwa/%xx%xx%xx (Find file on \\chikuwa and use Japanese machine to encode the DBCS char for a Japanese name. Then you can navigate on all CodePage systems)
  102. bryanst2 (http://bryanst2/ exists and http://www.bryanst2.com/)
  103. yahoo/ (http://yahoo/ doesn't exist but http://www.yahoo.com/ does but WE DON'T want to navigate to it.)
  104. ie40
  105. //bryanst
  106. ftp://ftp.microsoft.com
  107. ftp://ftp.microsoft.com/page.htm
  108. ftp://ftp.microsoft.com/page.htm#Frag4
  109. ftp://ftp.microsoft.com/page%23.htm#Frag4 (File is "page#.htm")
  110. file:///E:/dir1
  111. file:///E:/dir1/page.htm
  112. file:///E:/dir1/page.htm#Frag3
  113. file:///E:/dir1/page%23.htm#Frag3
  114. file://\\bryanst2\public
  115. E:\dir1\page.htm
  116. E:\dir1\page.htm#Frag3 <- May not work by design. (See Zeke)
  117. E:\dir1\page#.htm#Frag3 <- May not work by design. (See Zeke)
  118. One Two
  119. ? Three Four
  120. go Five Six
  121. ? SevenEight
  122. go NineTen
  123. 5. PERF
  124. ===========================================
  125. NOTE: Iterating through ISFs that contain a large number of
  126. items or folders takes a long time. For this reason,
  127. we special case the File System and UNC (Network Neighborhood)
  128. sections of the Shell Name Space to parse in quicker
  129. method. This is possible because those items
  130. cannot contain '\' chars.
  131. Make the following Shell Folders and items:
  132. C:\winnt\system32\one two.exe
  133. C:\winnt\system32\one two three (Directory)
  134. C:\winnt\system32\one two three four.exe
  135. Enter the following commands:
  136. C:\winnt\system32\one two Arg1 Arg2
  137. C:\winnt\system32\one two three (Okay if "one two.exe" is launched because of ambiguity)
  138. C:\winnt\system32\one two three\ (Folder should open)
  139. C:\winnt\system32\one two three four Arg1 Arg2
  140. C:\winnt\system32\Zoo Zed Zad (File doesn't exist, and it will cause navigation)