about summary refs log blame commit diff stats
path: root/html/086scenario_console_test.mu.html
blob: 95f75adb0b10584d74f234e45d0365c14e949ddd (plain) (tree)
1
2
3
4
5
6
7
8
9



                                                                                          
                                               
                                         
                                                
                                   
                                                                                                               
                                           

                       


                                                                                                 
                                       
                                      


                               
                            

                                                        

        



                               






















                                                                                 

         
       
                             
                         





                                                                                                                                        
                                                                                   

                                              



                                                                                                                                                                                        

                                                                 







                                                                                                                                                                                   

                                           


       
                                     
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Mu - 086scenario_console_test.mu</title>
<meta name="Generator" content="Vim/8.0">
<meta name="plugin-version" content="vim7.4_v2">
<meta name="syntax" content="none">
<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=">
<meta name="colorscheme" content="minimal">
<style type="text/css">
<!--
pre { white-space: pre-wrap; font-family: monospace; color: #aaaaaa; background-color: #080808; }
body { font-size: 12pt; font-family: monospace; color: #aaaaaa; background-color: #080808; }
a { color:#eeeeee; text-decoration: none; }
a:hover { text-decoration: underline; }
* { font-size: 12pt; font-size: 1em; }
.muScenario { color: #00af00; }
.LineNr { color: #444444; }
.Constant { color: #00a0a0; }
.Special { color: #c00000; }
.Comment { color: #9090ff; }
.Comment a { color:#0000ee; text-decoration:underline; }
-->
</style>

<script type='text/javascript'>
<!--

/* function to open any folds containing a jumped-to line before jumping to it */
function JumpToLine()
{
  var lineNum;
  lineNum = window.location.hash;
  lineNum = lineNum.substr(1); /* strip off '#' */

  if (lineNum.indexOf('L') == -1) {
    lineNum = 'L'+lineNum;
  }
  lineElem = document.getElementById(lineNum);
  /* Always jump to new location even if the line was hidden inside a fold, or
   * we corrected the raw number to a line ID.
   */
  if (lineElem) {
    lineElem.scrollIntoView(true);
  }
  return true;
}
if ('onhashchange' in window) {
  window.onhashchange = JumpToLine;
}

-->
</script>
</head>
<body onload='JumpToLine();'>
<pre id='vimCodeElement'>
<span id="L1" class="LineNr"> 1 </span><span class="Comment"># To check our support for consoles in scenarios, rewrite tests from</span>
<span id="L2" class="LineNr"> 2 </span><span class="Comment"># scenario_console.mu</span>
<span id="L3" class="LineNr"> 3 </span><span class="Comment"># Tests for console interface.</span>
<span id="L4" class="LineNr"> 4 </span>
<span id="L5" class="LineNr"> 5 </span><span class="muScenario">scenario</span> read-key-in-mu [
<span id="L6" class="LineNr"> 6 </span>  assume-console [
<span id="L7" class="LineNr"> 7 </span>    type <span class="Constant">[abc]</span>
<span id="L8" class="LineNr"> 8 </span>  ]
<span id="L9" class="LineNr"> 9 </span>  run [
<span id="L10" class="LineNr">10 </span>    1:char, 2:bool <span class="Special">&lt;-</span> <a href='084console.mu.html#L62'>read-key</a> <a href='084console.mu.html#L23'>console</a>
<span id="L11" class="LineNr">11 </span>    3:char, 4:bool <span class="Special">&lt;-</span> <a href='084console.mu.html#L62'>read-key</a> <a href='084console.mu.html#L23'>console</a>
<span id="L12" class="LineNr">12 </span>    5:char, 6:bool <span class="Special">&lt;-</span> <a href='084console.mu.html#L62'>read-key</a> <a href='084console.mu.html#L23'>console</a>
<span id="L13" class="LineNr">13 </span>    7:char, 8:bool <span class="Special">&lt;-</span> <a href='084console.mu.html#L62'>read-key</a> <a href='084console.mu.html#L23'>console</a>
<span id="L14" class="LineNr">14 </span>  ]
<span id="L15" class="LineNr">15 </span>  memory-should-contain [
<span id="L16" class="LineNr">16 </span>   <span class="Constant"> 1</span> <span class="Special">&lt;-</span><span class="Constant"> 97</span>  <span class="Comment"># 'a'</span>
<span id="L17" class="LineNr">17 </span>   <span class="Constant"> 2</span> <span class="Special">&lt;-</span><span class="Constant"> 1</span>
<span id="L18" class="LineNr">18 </span>   <span class="Constant"> 3</span> <span class="Special">&lt;-</span><span class="Constant"> 98</span>  <span class="Comment"># 'b'</span>
<span id="L19" class="LineNr">19 </span>   <span class="Constant"> 4</span> <span class="Special">&lt;-</span><span class="Constant"> 1</span>
<span id="L20" class="LineNr">20 </span>   <span class="Constant"> 5</span> <span class="Special">&lt;-</span><span class="Constant"> 99</span>  <span class="Comment"># 'c'</span>
<span id="L21" class="LineNr">21 </span>   <span class="Constant"> 6</span> <span class="Special">&lt;-</span><span class="Constant"> 1</span>
<span id="L22" class="LineNr">22 </span>   <span class="Constant"> 7</span> <span class="Special">&lt;-</span><span class="Constant"> 0</span>  <span class="Comment"># eof</span>
<span id="L23" class="LineNr">23 </span>   <span class="Constant"> 8</span> <span class="Special">&lt;-</span><span class="Constant"> 1</span>
<span id="L24" class="LineNr">24 </span>  ]
<span id="L25" class="LineNr">25 </span>]
</pre>
</body>
</html>
<!-- vim: set foldmethod=manual : -->
"LYMainLoop.obj" \ "LYMap.obj" \ "LYNews.obj" \ "LYOptions.obj" \ "LYPrettySrc.obj" \ "LYPrint.obj" \ "LYrcFile.obj" \ "LYReadCFG.obj" \ "LYSearch.obj" \ "LYShowInfo.obj" \ "LYStrings.obj" \ "LYTraversal.obj" \ "LYUpload.obj" \ "LYUtils.obj" \ "SGML.obj" \ "TRSTable.obj" \ "UCAuto.obj" \ "UCAux.obj" \ "UCdomap.obj" \ "Xsystem.obj" # Dependencies for building all : lynx.exe clean : -del *.obj lynx.exe: $(OBJS) dirent.obj $(LINK) $(OBJS) $(LIBS) DefaultStyle.obj : $(SRC_DIR)\DefaultStyle.c $(COMPILE) $(SRC_DIR)\DefaultStyle.c GridText.obj : $(SRC_DIR)\GridText.c $(COMPILE) $(SRC_DIR)\GridText.c HTAlert.obj : $(SRC_DIR)\HTAlert.c $(COMPILE) $(SRC_DIR)\HTAlert.c HTFWriter.obj : $(SRC_DIR)\HTFWriter.c $(COMPILE) $(SRC_DIR)\HTFWriter.c HTInit.obj : $(SRC_DIR)\HTInit.c $(COMPILE) $(SRC_DIR)\HTInit.c HTML.obj : $(SRC_DIR)\HTML.c $(COMPILE) $(SRC_DIR)\HTML.c LYBookmark.obj : $(SRC_DIR)\LYBookmark.c $(COMPILE) $(SRC_DIR)\LYBookmark.c LYCgi.obj : $(SRC_DIR)\LYCgi.c $(COMPILE) $(SRC_DIR)\LYCgi.c LYCharSets.obj : $(SRC_DIR)\LYCharSets.c $(COMPILE) $(SRC_DIR)\LYCharSets.c LYCharUtils.obj : $(SRC_DIR)\LYCharUtils.c $(COMPILE) $(SRC_DIR)\LYCharUtils.c LYClean.obj : $(SRC_DIR)\LYClean.c $(COMPILE) $(SRC_DIR)\LYClean.c LYCookie.obj : $(SRC_DIR)\LYCookie.c $(COMPILE) $(SRC_DIR)\LYCookie.c LYCurses.obj : $(SRC_DIR)\LYCurses.c $(COMPILE) $(SRC_DIR)\LYCurses.c LYDownload.obj : $(SRC_DIR)\LYDownload.c $(COMPILE) $(SRC_DIR)\LYDownload.c LYEdit.obj : $(SRC_DIR)\LYEdit.c $(COMPILE) $(SRC_DIR)\LYEdit.c LYEditmap.obj : $(SRC_DIR)\LYEditmap.c $(COMPILE) $(SRC_DIR)\LYEditmap.c LYexit.obj : $(SRC_DIR)\LYexit.c $(COMPILE) $(SRC_DIR)\LYexit.c LYExtern.obj : $(SRC_DIR)\LYExtern.c $(COMPILE) $(SRC_DIR)\LYExtern.c LYForms.obj : $(SRC_DIR)\LYForms.c $(COMPILE) $(SRC_DIR)\LYForms.c LYGetFile.obj : $(SRC_DIR)\LYGetFile.c $(COMPILE) $(SRC_DIR)\LYGetFile.c LYHash.obj : $(SRC_DIR)\LYHash.c $(COMPILE) $(SRC_DIR)\LYHash.c LYHistory.obj : $(SRC_DIR)\LYHistory.c $(COMPILE) $(SRC_DIR)\LYHistory.c LYJump.obj : $(SRC_DIR)\LYJump.c $(COMPILE) $(SRC_DIR)\LYJump.c LYKeymap.obj : $(SRC_DIR)\LYKeymap.c $(COMPILE) $(SRC_DIR)\LYKeymap.c LYLeaks.obj : $(SRC_DIR)\LYLeaks.c $(COMPILE) $(SRC_DIR)\LYLeaks.c LYList.obj : $(SRC_DIR)\LYList.c $(COMPILE) $(SRC_DIR)\LYList.c LYLocal.obj : $(SRC_DIR)\LYLocal.c $(COMPILE) $(SRC_DIR)\LYLocal.c LYMail.obj : $(SRC_DIR)\LYMail.c $(COMPILE) $(SRC_DIR)\LYMail.c LYMain.obj : $(SRC_DIR)\LYMain.c $(COMPILE) $(SRC_DIR)\LYMain.c LYMainLoop.obj : $(SRC_DIR)\LYMainLoop.c $(COMPILE) $(SRC_DIR)\LYMainLoop.c LYMap.obj : $(SRC_DIR)\LYMap.c $(COMPILE) $(SRC_DIR)\LYMap.c LYNews.obj : $(SRC_DIR)\LYNews.c $(COMPILE) $(SRC_DIR)\LYNews.c LYOptions.obj : $(SRC_DIR)\LYOptions.c $(COMPILE) $(SRC_DIR)\LYOptions.c LYPrettySrc.obj : $(SRC_DIR)\LYPrettySrc.c $(COMPILE) $(SRC_DIR)\LYPrettySrc.c LYPrint.obj : $(SRC_DIR)\LYPrint.c $(COMPILE) $(SRC_DIR)\LYPrint.c LYrcFile.obj : $(SRC_DIR)\LYrcFile.c $(COMPILE) $(SRC_DIR)\LYrcFile.c LYReadCFG.obj : $(SRC_DIR)\LYReadCFG.c $(COMPILE) $(SRC_DIR)\LYReadCFG.c LYSearch.obj : $(SRC_DIR)\LYSearch.c $(COMPILE) $(SRC_DIR)\LYSearch.c LYShowInfo.obj : $(SRC_DIR)\LYShowInfo.c $(COMPILE) $(SRC_DIR)\LYShowInfo.c LYStrings.obj : $(SRC_DIR)\LYStrings.c $(COMPILE) $(SRC_DIR)\LYStrings.c LYStyle.obj : $(SRC_DIR)\LYStyle.c $(COMPILE) $(SRC_DIR)\LYStyle.c LYTraversal.obj : $(SRC_DIR)\LYTraversal.c $(COMPILE) $(SRC_DIR)\LYTraversal.c LYUpload.obj : $(SRC_DIR)\LYUpload.c $(COMPILE) $(SRC_DIR)\LYUpload.c LYUtils.obj : $(SRC_DIR)\LYUtils.c $(COMPILE) $(SRC_DIR)\LYUtils.c TRSTable.obj : $(SRC_DIR)\TRSTable.c $(COMPILE) $(SRC_DIR)\TRSTable.c mktime.obj : $(SRC_DIR)\mktime.c $(COMPILE) $(SRC_DIR)\mktime.c strstr.obj : $(SRC_DIR)\strstr.c $(COMPILE) $(SRC_DIR)\strstr.c UCAuto.obj : $(SRC_DIR)\UCAuto.c $(COMPILE) $(SRC_DIR)\UCAuto.c UCAux.obj : $(SRC_DIR)\UCAux.c $(COMPILE) $(SRC_DIR)\UCAux.c UCdomap.obj : $(SRC_DIR)\UCdomap.c $(COMPILE) $(SRC_DIR)\UCdomap.c Xsystem.obj : $(SRC_DIR)\Xsystem.c $(COMPILE) $(SRC_DIR)\Xsystem.c dirent.obj : $(ETC_LIB)\dirent.c $(COMPILE) $(ETC_LIB)\dirent.c HTAABrow.obj : $(WWW_DIR)\HTAABrow.c $(COMPILE) $(WWW_DIR)\HTAABrow.c HTAAFile.obj : $(WWW_DIR)\HTAAFile.c $(COMPILE) $(WWW_DIR)\HTAAFile.c HTAAProt.obj : $(WWW_DIR)\HTAAProt.c $(COMPILE) $(WWW_DIR)\HTAAProt.c HTAAUtil.obj : $(WWW_DIR)\HTAAUtil.c $(COMPILE) $(WWW_DIR)\HTAAUtil.c HTAccess.obj : $(WWW_DIR)\HTAccess.c $(COMPILE) $(WWW_DIR)\HTAccess.c HTAnchor.obj : $(WWW_DIR)\HTAnchor.c $(COMPILE) $(WWW_DIR)\HTAnchor.c HTAssoc.obj : $(WWW_DIR)\HTAssoc.c $(COMPILE) $(WWW_DIR)\HTAssoc.c HTAtom.obj : $(WWW_DIR)\HTAtom.c $(COMPILE) $(WWW_DIR)\HTAtom.c HTBTree.obj : $(WWW_DIR)\HTBTree.c $(COMPILE) $(WWW_DIR)\HTBTree.c HTChunk.obj : $(WWW_DIR)\HTChunk.c $(COMPILE) $(WWW_DIR)\HTChunk.c HTDOS.obj : $(WWW_DIR)\HTDOS.c $(COMPILE) $(WWW_DIR)\HTDOS.c HTFile.obj : $(WWW_DIR)\HTFile.c $(COMPILE) $(WWW_DIR)\HTFile.c HTFinger.obj : $(WWW_DIR)\HTFinger.c $(COMPILE) $(WWW_DIR)\HTFinger.c HTFormat.obj : $(WWW_DIR)\HTFormat.c $(COMPILE) $(WWW_DIR)\HTFormat.c HTFTP.obj : $(WWW_DIR)\HTFTP.c $(COMPILE) $(WWW_DIR)\HTFTP.c HTGopher.obj : $(WWW_DIR)\HTGopher.c $(COMPILE) $(WWW_DIR)\HTGopher.c HTGroup.obj : $(WWW_DIR)\HTGroup.c $(COMPILE) $(WWW_DIR)\HTGroup.c HTLex.obj : $(WWW_DIR)\HTLex.c $(COMPILE) $(WWW_DIR)\HTLex.c HTList.obj : $(WWW_DIR)\HTList.c $(COMPILE) $(WWW_DIR)\HTList.c HTMIME.obj : $(WWW_DIR)\HTMIME.c $(COMPILE) $(WWW_DIR)\HTMIME.c HTMLDTD.obj : $(WWW_DIR)\HTMLDTD.c $(COMPILE) $(WWW_DIR)\HTMLDTD.c HTMLGen.obj : $(WWW_DIR)\HTMLGen.c $(COMPILE) $(WWW_DIR)\HTMLGen.c HTNews.obj : $(WWW_DIR)\HTNews.c $(COMPILE) $(WWW_DIR)\HTNews.c HTParse.obj : $(WWW_DIR)\HTParse.c $(COMPILE) $(WWW_DIR)\HTParse.c HTPlain.obj : $(WWW_DIR)\HTPlain.c $(COMPILE) $(WWW_DIR)\HTPlain.c HTRules.obj : $(WWW_DIR)\HTRules.c $(COMPILE) $(WWW_DIR)\HTRules.c HTString.obj : $(WWW_DIR)\HTString.c $(COMPILE) $(WWW_DIR)\HTString.c HTStyle.obj : $(WWW_DIR)\HTStyle.c $(COMPILE) $(WWW_DIR)\HTStyle.c HTTCP.obj : $(WWW_DIR)\HTTCP.c $(COMPILE) $(WWW_DIR)\HTTCP.c HTTelnet.obj : $(WWW_DIR)\HTTelnet.c $(COMPILE) $(WWW_DIR)\HTTelnet.c HTTP.obj : $(WWW_DIR)\HTTP.c $(COMPILE) $(WWW_DIR)\HTTP.c HTUU.obj : $(WWW_DIR)\HTUU.c $(COMPILE) $(WWW_DIR)\HTUU.c HTWSRC.obj : $(WWW_DIR)\HTWSRC.c $(COMPILE) $(WWW_DIR)\HTWSRC.c SGML.obj : $(WWW_DIR)\SGML.c $(COMPILE) $(WWW_DIR)\SGML.c