久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<small id='4HX7C'></small><noframes id='4HX7C'>

  • <i id='4HX7C'><tr id='4HX7C'><dt id='4HX7C'><q id='4HX7C'><span id='4HX7C'><b id='4HX7C'><form id='4HX7C'><ins id='4HX7C'></ins><ul id='4HX7C'></ul><sub id='4HX7C'></sub></form><legend id='4HX7C'></legend><bdo id='4HX7C'><pre id='4HX7C'><center id='4HX7C'></center></pre></bdo></b><th id='4HX7C'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='4HX7C'><tfoot id='4HX7C'></tfoot><dl id='4HX7C'><fieldset id='4HX7C'></fieldset></dl></div>

      <bdo id='4HX7C'></bdo><ul id='4HX7C'></ul>

        <legend id='4HX7C'><style id='4HX7C'><dir id='4HX7C'><q id='4HX7C'></q></dir></style></legend>
      1. <tfoot id='4HX7C'></tfoot>

        啟動時打開 Karma debug.html 頁面

        Open Karma debug.html page on startup(啟動時打開 Karma debug.html 頁面)
          <bdo id='VD3Dz'></bdo><ul id='VD3Dz'></ul>
          <legend id='VD3Dz'><style id='VD3Dz'><dir id='VD3Dz'><q id='VD3Dz'></q></dir></style></legend>

                <tbody id='VD3Dz'></tbody>
              <tfoot id='VD3Dz'></tfoot>

                • <small id='VD3Dz'></small><noframes id='VD3Dz'>

                  <i id='VD3Dz'><tr id='VD3Dz'><dt id='VD3Dz'><q id='VD3Dz'><span id='VD3Dz'><b id='VD3Dz'><form id='VD3Dz'><ins id='VD3Dz'></ins><ul id='VD3Dz'></ul><sub id='VD3Dz'></sub></form><legend id='VD3Dz'></legend><bdo id='VD3Dz'><pre id='VD3Dz'><center id='VD3Dz'></center></pre></bdo></b><th id='VD3Dz'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='VD3Dz'><tfoot id='VD3Dz'></tfoot><dl id='VD3Dz'><fieldset id='VD3Dz'></fieldset></dl></div>
                  本文介紹了啟動時打開 Karma debug.html 頁面的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  簡短版:

                  如何啟動 Karma 并讓它在與 Karma 起始頁相同的瀏覽器中自動打開 debug.html 文件?

                  How do I start up Karma and have it open the debug.html file automatically in the same browser as the Karma start page?

                  長版:

                  我不太喜歡使用控制臺記者來記錄 Karma,所以我一直在使用 karma-jasmine-html-reporter-livereload 輸出到 Karma 的 localhost:9876/debug.html 文件.問題是,每次我開始調試會話時,我都必須單擊 karma 打開的網頁中的調試"按鈕.

                  I'm not a huge fan of using the console reporters for Karma, so I have been using karma-jasmine-html-reporter-livereload which outputs to Karma's localhost:9876/debug.html file. The problem is, every time I start a debugging session, I have to click the 'debug' button in the web page that karma opens.

                  我想找到一種方法讓 karma 通過 gulp 任務自動打開 debug.html 頁面.我在多個瀏覽器中運行測試,因此我希望 debug.html 頁面在 Karma 打開的每個瀏覽器中作為第二個選項卡打開.我還希望能夠在業力關閉時關閉該 debug.html 選項卡.我嘗試了很多東西,但沒有成功.

                  I would like to find a way to have karma open the debug.html page automatically through a gulp task. I run the tests in multiple browsers, so I would like the debug.html page to open as a second tab in each of the browsers that Karma opens. I would also like to be able to close that debug.html tab when karma closes. I've tried a bunch of things, with no success.

                  這是我的 gulp 任務.監視"任務監視我的源 TypeScript 文件并將它們編譯成 javascript……沒什么特別的.

                  Here's my gulp task. The 'watch' task watches my source TypeScript files and compiles them into javascript...nothing fancy.

                  gulp.task('watch-test', ['watch'], function (done) {
                      //start a livereload server so that the karma html 
                      //reporter knows to reload whenever the scripts change
                      livereload.listen(35729);
                      gulp.watch('dist/src/**/*.js').on('change', livereload.changed);
                  
                      new KarmaServer({
                          configFile: __dirname + '/karma.conf.js',
                          singleRun: false
                      }, done).start();
                  });
                  

                  推薦答案

                  我找到了一種讓它永久化的方法,雖然它并不完美.你可以在上下文中注入一個 javascript:

                  I found a way that makes it permanent although it is not perfect.. You can inject into the context a javascript:

                  files: [
                      "test/init.js",
                      ...
                  ]
                  

                  并將這段代碼放入文件中:

                  and put inside the file this code:

                  (function (window) {
                      if (!window.parent.initDone && window.location.pathname === '/context.html') {
                           window.parent.initDone = true;
                           window.open('/debug.html', '_blank');
                      }
                  })(window)
                  

                  這將確保該窗口僅在第一次運行測試時打開,并且僅在 context.html 中執行.

                  this will ensure that the window is open only the first time the tests are run and it will be executed only in context.html.

                  您可以在該塊中添加任何您希望的初始化代碼.

                  You can add any init code you wish inside that block.

                  這篇關于啟動時打開 Karma debug.html 頁面的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                  Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                  Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                  How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                  Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)
                  Detect FLASH plugin crashes(檢測 FLASH 插件崩潰)

                  <small id='75cdV'></small><noframes id='75cdV'>

                • <tfoot id='75cdV'></tfoot>

                    <tbody id='75cdV'></tbody>

                        <bdo id='75cdV'></bdo><ul id='75cdV'></ul>
                        • <i id='75cdV'><tr id='75cdV'><dt id='75cdV'><q id='75cdV'><span id='75cdV'><b id='75cdV'><form id='75cdV'><ins id='75cdV'></ins><ul id='75cdV'></ul><sub id='75cdV'></sub></form><legend id='75cdV'></legend><bdo id='75cdV'><pre id='75cdV'><center id='75cdV'></center></pre></bdo></b><th id='75cdV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='75cdV'><tfoot id='75cdV'></tfoot><dl id='75cdV'><fieldset id='75cdV'></fieldset></dl></div>

                            <legend id='75cdV'><style id='75cdV'><dir id='75cdV'><q id='75cdV'></q></dir></style></legend>
                            主站蜘蛛池模板: 久久中文高清 | 日韩欧美一区二区三区 | 高清国产午夜精品久久久久久 | 日韩激情免费 | 日本高清中文字幕 | 亚州一区二区三区 | 亚洲 中文 欧美 日韩 在线观看 | 天堂成人国产精品一区 | 日韩福利 | 男女啪啪网址 | 天堂va在线观看 | 粉嫩一区二区三区国产精品 | 毛片在线看片 | 国产欧美一区二区三区日本久久久 | 在线视频 亚洲 | 国产综合在线视频 | 九九热免费视频在线观看 | 91免费看片神器 | 人人做人人澡人人爽欧美 | 日本电影韩国电影免费观看 | 欧美一区成人 | 中文字幕 视频一区 | 亚洲综合一区二区三区 | 都市激情亚洲 | 中文字幕亚洲免费 | 麻豆国产一区二区三区四区 | 91久色| 亚洲精品乱码久久久久久久久久 | 日日骚网 | 天天干天天草 | 久久av网| 国产视频不卡一区 | 午夜看电影在线观看 | 91国内在线观看 | 成人精品一区二区户外勾搭野战 | 日韩毛片| 东方伊人免费在线观看 | 日韩欧美国产成人一区二区 | 欧美激情在线观看一区二区三区 | 黄色a视频| 天堂综合网久久 |