IDE Views Basic Acceptance Tests

From Aptana Development

Contents

General

  • Close and re-open views
  • Ensure that default set of views matches expected set on resetting the profile.
  • If the profile changed from last stable to newest version, ensure the IDE prompts you for an update
  • Make sure the views listed on the reset perspective match what is shown on the interface overview screen

Code Assist Profiles

  1. Create new Ajax Library project with both jquery and dojo libraries
  2. Open jquery sample file
    1. Ensure profile created for HTML file opened
  3. Open dojo sample file
    1. Ensure profile created for HTML file opened
  4. Switch back to jquery sample editor
    1. Ensure active profile is jquery
  5. Type $ in editor
    1. Ensure jquery content assist shows
  6. Type dojo in editor
    1. Ensure no dojo content assist
  7. Switch to dojo html file
  8. Type dojo in editor
    1. Ensure dojo content assist shows
  9. Type $
    1. Ensure no jquery content assist shows
  10. Create a new JS file * M10 Only
  11. Create new profile titled jquery * M10 Only
  12. Add the following files to that profile: * M10 Only
    1. lib/jquery/jquery.js * M10 Only
    2. lib/jquery/jquery.sdoc * M10 Only
  13. Create new profile titled dojo * M10 Only
  14. Add the following files to that profile: * M10 Only
    1. lib/dojo/dojo.js * M10 Only
  15. Set jquery profile as active * M10 Only
  16. Open JS file * M10 Only
  17. Type $("test").slide * M10 Only
    1. Ensure content assist has jquery options (slideDown, slideToggle) * M10 Only
  18. Set dojo profile as active * M10 Only
    1. Ensure jquery options no longer present * M10 Only
  19. Type dojo. * M10 Only
    1. Ensure content assist has dojo options (addOnLoad, debug, etc.) * M10 Only
  20. Close editor * M10 Only
  21. Reopen editor * M10 Only
  22. Type dojo. * M10 Only
    1. Ensure content assist has dojo options (addOnLoad, debug, etc.) * M10 Only

Outline

  • Open up a new HTML file
  • Add in CSS and JS Sections.
  • Add in new foo() function to JS
  • show all languages in outliner
  • Type "foo" into the filter box and see the outline filter 'foo'

File

  • Switch between the File View and Project View. The "New" menu items should switch between "Project" and "Untitled" files
  • Drag an item from one spot in the file view to another. It should open sub-folders as you hover over a folder or drive.
  • The top level should display references to the following folders:
    • Windows
      • My Computer
      • My Network Places
      • Desktop
      • Project Shortcuts
      • FTP
      • SFTP
    • Mac
      • Main Hardrive Name
      • Desktop
      • Project Shortcuts
      • FTP
      • SFTP
    • Linux
      • My Computer
      • Desktop
      • Project Shortcuts
      • FTP
      • SFTP
  • Creating a new file
  • Creating a new folder

Project Shortcuts

  • In the File View, right-click Project Shortcuts and select Add new Project... from the context menu to open a Project Site Configuration window.
  • On the Project Site Configuration window, browse to the path for your project.
  • Click OK.

Project

  • Verify this view allows you navigate your project folder structure.

Samples

  • Open samples view
    • Ensure samples buttons are disabled
  • Select Adobe AIR
  • Select Help icon
    • Ensure help file opens in internal browser
  • Preview Mochikit->draggable
  • Close Preview
  • Preview Mochikit->draggable again
  • Import Aflax Samples->aqua sample
    • Ensure project created with correct files

Servers

  • The servers view is not currently used in M9

Snippets

  • Verify that selecting a snippet and double-clicking it insert it into the document
  • Verify you can create a new snippet by creating a "snippets" folder in your project
    • Create a new CSS file
    • Double-click on "CSS Snippet Template"
    • Edit the header
    • Verify the snippet shows up in the snippets view.

Sync Manager

See FTP Basic Acceptance Tests for more information. Ensure that all of the connections you created are present and can be edited as part of the Synchronization View.

Validation

  • Create new js file
  • The following into the editor:
var;


function() {
  • Verify errors appear in Validation view
  • Select all errors in the table
    • Verify they go to the error location in the document
  • De-select Show Error button
    • Verify errors no longer appear
  • Select Show Errors button
  • Select File->Save As Only in M10
  • Rename file Only in M10
    • Verify errors still appear in validation view Only in M10
    • Verify selecting errors still go to location in the document Only in M10
  • Right click on editor and select New Editor Only in M10
    • Verify errors appear in view for both editors Only in M10
  • Remove last line of file Only in M10
    • Verify error is removed in both editors and both validation views Only in M10
  • Close JS editor
    • Verify validation view is blank and displays message why
  • Open a file in the text editor (Non Aptana editor)
    • Verify validation view is blank and displays message why

Visual Scriptdoc (new)

  • To appear in M10.

Walkthroughs

  • Open the walkthroughs view and verify you are able to view walkthrough content
  • Verify clicking on the expand/collapse sections works.

Search

  • Search for a string in a project and verify the search view presents a list of all of the files containing that string
  • Verify double-clicking on a file opens that file in the editor.

Bookmarks

  • Verify you are able to add a bookmark from right-clicking in the gutter of a file

Tasks

  • Verify you are able to add a task from right-clicking in the gutter of a file

Start Page

  • Updates
    • Ensure open plugin manager opens Plugins Manager view
    • Ensure link at bottom shows and hides update section
  • News
    • Ensure links open in external browser
  • Plugins
    • Ensure install links open update manager
  • Documentation
    • Ensure links open in Help window with page content loaded
  • Configuration
    • Ensure preferences link opens preference window to start page preference page

Plugins Manager

  • Verify you can bring up the plugins manager by clicking the "plugin" icon on the toolbar.
  • Verify that the Manage list shows the current list of installed plugins
  • Verify items in the Manage list are not in the Install list

Links