Redirecting to https://octolinker.now.sh/

JavaScriptのユニットテストをJenkinsとかでCIしたいとき、PhantomJSで実行するのもいいけどやっぱりChromeとかFirefoxみたいな実際のブラウザでテストしたい。でも環境作るのめんどくさいよなーと思ってたけどXvfbを使うとChromeとかFirefoxが動くのでLinux版のChromeとFirefoxだけだとわりと簡単に環境つくれた。 Xvfbというのは画面入出力をシミュレートするやつでデスクトップ環境を用意しなくてもChromeとかFirefoxとかが動かせるやつ。 OSはUbuntsの12.04(precise64)で試した。 まずXvfbを入れる。 $ sudo apt-get install xvfb 次にFirefoxを入れる。これもすぐ入る。 $ sudo apt-get install firefox Chromeは一手間必要だけどわりとすぐ入
These days, when the phrase "headless browser" is mentioned, you immediately think of PhantomJS, but - there are alternatives. In this article, I am going to introduce a nice alternative you can use on Linux which allows you to run real browsers - Firefox and Chrome, headless - using Xvfb. What's Wrong With PhantomJS? PhantomJS is great tool and is widely used by companies and developers around th
The following is a changelog for JavaScript features in Firefox releases. Firefox 52 New features Support for the async functions has been added. This adds async function, async function expression, and the await keyword (bug 1185106). Implemented ES2017 trailing commas in functions (bug 1303788). Implemented rest parameter destructuring (bug 1243717). The exponentiation operator (**) is now enabl
The following is a changelog for JavaScript features in Firefox releases. Firefox 41 Date.prototype is now an ordinary object, not a Date instance anymore (bug 861219). Date.prototype.toString is now a generic method (bug 861219). Symbol.species has been added (bug 1131043). Map[@@species] and Set[@@species] getters have been added (bug 1131043). Non-standard let expression support has been droppe
var p = new Promise(function(fulfill, reject){ console.log("start"); fulfill(""); }); p.then(function(result){ console.log("1-1"); }).then(function(result){ console.log("1-2"); }).then(function(result){ console.log("1-3"); }); p.then(function(result){ console.log("2-1") }).then(function(result){ console.log("2-2"); }).then(function(result){ console.log("2-3"); });
2013年 04月 05日 とりあえずJavaScriptを記述して動作を確認したいって時はFirefoxに搭載のスクラッチパッドが断然便利 カテゴリ: Firefox タグ:javascriptエディタデバッグ JavaScriptを記述出来るエディタは沢山あるんですが、「とりあえずソースを書いて試したい」って時はFirefoxに標準で付属しているScratchpad(スクラッチパッド)を使っています。 Scratchpad(スクラッチパッド) Firefox 6で搭載されたスクラッチパッド。使ってる人は結構居るかもしれませんが、まだ知らない人も居ると思うのでちょっと紹介しようと思いました。 Firefoxにはブラウジングする機能以外に開発者向けの機能が沢山備わっています。Scratchpad(スクラッチパッド)もその中の一つで、これはJavaScriptのソースを記述・実行・デバッグが
このセクションでは、要素のフォーカスと選択を取り扱う方法について説明します。 フォーカスを得ている要素 「フォーカスを得ている要素」とは、そのとき入力イベントを受け取っている要素のことです。 ウィンドウに 3 つのテキスト入力欄がある場合、そのときフォーカスを得ているテキスト入力欄だけが、利用者によるテキスト入力を受け付けることができます。 1 つのウィンドウについて、1 つの要素だけがフォーカスを得ることが可能です。 利用者は、要素をマウスでクリックするか TAB キーを押すことにより、フォーカスを移動することができます。 TAB キーを押すと、次の要素にフォーカスが移ります。 また、前の要素に戻るには、Shift キーを押しながら TAB キーを押します。 TAB 順序を変更する tabindex 属性を要素に付加することにより、 TAB キーが押されたときにフォーカスが移る順序 (T
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く