久久久久久久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 頁面的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時送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 文件.問題是,每次我開始調(diào)試會話時,我都必須單擊 karma 打開的網(wǎng)頁中的調(diào)試"按鈕.

                  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 任務(wù)自動打開 debug.html 頁面.我在多個瀏覽器中運行測試,因此我希望 debug.html 頁面在 Karma 打開的每個瀏覽器中作為第二個選項卡打開.我還希望能夠在業(yè)力關(guān)閉時關(guān)閉該 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 任務(wù).監(jiān)視"任務(wù)監(jiān)視我的源 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 中執(zhí)行.

                  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.

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

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

                  相關(guān)文檔推薦

                  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?(是否可以將標(biāo)志傳遞給 Gulp 以使其以不同的方式運行任務(wù)?)
                  Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                  How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務(wù))
                  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>
                            主站蜘蛛池模板: 国产精品欧美一区二区三区不卡 | 91免费看片神器 | 国产精品爱久久久久久久 | 欧美精品成人一区二区三区四区 | 日韩免费视频一区二区 | 欧美日韩一区二区视频在线观看 | 99国内精品久久久久久久 | 人人性人人性碰国产 | 欧美激情在线精品一区二区三区 | 久久蜜桃资源一区二区老牛 | 国产1区2区 | 免费在线播放黄色 | 亚洲欧美在线观看 | 国产精品美女久久久久久久网站 | 新91 | 欧美韩一区二区三区 | 黄网站免费在线看 | 久久久久久久成人 | 免费久久精品视频 | 国产日韩欧美一区二区 | av手机在线 | 免费午夜电影 | 高清亚洲| 久草视频在线看 | 亚洲aⅴ精品 | 逼逼视频 | 婷婷丁香在线视频 | 韩国av一区二区 | 中文字幕免费在线 | 国产一区欧美 | 亚洲午夜精品久久久久久app | 激情免费视频 | 欧美成人精品激情在线观看 | 成人亚洲在线 | 欧美 中文字幕 | 精品欧美一区二区三区精品久久 | 国产精品国产馆在线真实露脸 | 黄色一级片在线播放 | 国产一区二区三区四区五区加勒比 | 一级在线毛片 | 香蕉一区 |